Пример #1
0
 public MainWindow(WeatherPanel weatherPanel, SettingsPanel settingsPanel)
 {
     InitializeComponent();
     SetWindowHeight();
     ApplyCommandBindings();
     _weatherPanel = weatherPanel;
     _settingsPanel = settingsPanel;
     Content = _settingsPanel.AreValid() ? (object)_weatherPanel : _settingsPanel;
 }
Пример #2
0
 public MainWindow(WeatherPanel weatherPanel, SettingsPanel settingsPanel)
 {
     InitializeComponent();
     SetWindowHeight();
     ApplyCommandBindings();
     _weatherPanel  = weatherPanel;
     _settingsPanel = settingsPanel;
     Content        = _settingsPanel.AreValid() ? (object)_weatherPanel : _settingsPanel;
 }