/// <summary> /// Создаем все окна, какие нам нужны /// </summary> private void initWindows() { hsiWin = new HSIWindow(); //hsiWin.Owner = Application.Current.MainWindow; hsiWin.UpdateLayout(); }
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; } } }