Esempio n. 1
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     //载入设备列表
     DeviceListFrm.Navigate(DeviceListWindow["DeviceListWindow"]);
     if (Parameters.LanguageType.Equals("CN") || Parameters.LanguageType.Equals(""))
     {
         LanguageClass    = new Language_CN.ManageField();
         this.DataContext = (Language_CN.ManageField)LanguageClass;
     }
     else if (Parameters.LanguageType.Equals("EN"))
     {
         LanguageClass    = new Language_EN.ManageField();
         this.DataContext = (Language_EN.ManageField)LanguageClass;
     }
 }
Esempio n. 2
0
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //载入设备列表
            DeviceListFrm.Navigate(AllWindow["DeviceListWindow"]);
            DeviceInfoSettingFram.Navigate(AllWindow["DeviceInfoSettingModel"]);

            //中/英文初始化
            if (Parameters.LanguageType.Equals("CN") || Parameters.LanguageType.Equals(""))
            {
                this.DataContext = (Language_CN.Device_managerWindow)Device_managerLanguageClass;
            }
            else
            {
                this.DataContext = (Language_EN.Device_managerWindow)Device_managerLanguageClass;
            }

            Parameters.SendMessage(Parameters.DeviceTreeViewHandle, Parameters.WM_DeviceTreeViewListing, 0, 0);
        }