|
@@ -25,10 +25,38 @@ namespace AwInitilizer
|
|
|
{
|
|
|
base.OnActivated(e);
|
|
|
|
|
|
+ SetUiLanguage();
|
|
|
+ SetMes();
|
|
|
+
|
|
|
var startResult = SajetConnect.SajetTransStart();
|
|
|
+ }
|
|
|
+
|
|
|
+ private void SetUiLanguage()
|
|
|
+ {
|
|
|
+ var langSetting = AwInitilizer.Properties.Settings.Default.Language;
|
|
|
+
|
|
|
+ if (langSetting.ToLower() == "zh-chs")
|
|
|
+ {
|
|
|
+ Cultures.CulturesHelper.Instance.ChangeCulture(System.Globalization.CultureInfo.GetCultureInfo("zh-CHS"));
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ Cultures.CulturesHelper.Instance.ChangeCulture(System.Globalization.CultureInfo.GetCultureInfo("en-US"));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private void SetMes()
|
|
|
+ {
|
|
|
+ var mesSetting = AwInitilizer.Properties.Settings.Default.MES.ToLower();
|
|
|
+
|
|
|
+ if (mesSetting == "php" || mesSetting == "shinewave")
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ else if (mesSetting == "phv" || mesSetting == "sajet")
|
|
|
+ {
|
|
|
|
|
|
- Cultures.CulturesHelper.Instance.ChangeCulture(System.Globalization.CultureInfo.GetCultureInfo("zh-CHS"));
|
|
|
- //Cultures.CulturesHelper.Instance.ChangeCulture(System.Globalization.CultureInfo.GetCultureInfo("en-US"));
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
private void App_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
|