Esempio n. 1
0
 /// <summary>
 /// Создаем все окна, какие нам нужны
 /// </summary>
 private void initWindows()
 {
     hsiWin = new HSIWindow();
     //hsiWin.Owner = Application.Current.MainWindow;
     hsiWin.UpdateLayout();
 }
Esempio n. 2
0
        private void CreateAllWindows()
        {
            hsiWin = new HSIWindow(Xsan);

            AppSettings.LoadWindow((Window)hsiWin);
            AppSettings.LoadWindow(Window.GetWindow(this));
            if (hsiWin.Visibility == System.Windows.Visibility.Visible)
            {
                HSIControlCb.IsChecked = true;
            }
            string powerLabelVisible = AppSettings.Load("PowerLabel");
            if (powerLabelVisible != null)
            {
                switch (powerLabelVisible)
                {
                    case "Visible" :
                        TMGrid.Visibility = System.Windows.Visibility.Visible;
                        break;
                    case "Hidden" :
                        TMGrid.Visibility = System.Windows.Visibility.Hidden;
                        break;
                    default :
                        TMGrid.Visibility = System.Windows.Visibility.Visible;
                        break;
                }
            }
        }