public MainWindow(WeatherPanel weatherPanel, SettingsPanel settingsPanel)
 {
     InitializeComponent();
     SetWindowHeight();
     ApplyCommandBindings();
     _weatherPanel = weatherPanel;
     _settingsPanel = settingsPanel;
     Content = _settingsPanel.AreValid() ? (object)_weatherPanel : _settingsPanel;
 }
Esempio n. 2
0
 public MainWindow(WeatherPanel weatherPanel, SettingsPanel settingsPanel)
 {
     InitializeComponent();
     SetWindowHeight();
     ApplyCommandBindings();
     _weatherPanel  = weatherPanel;
     _settingsPanel = settingsPanel;
     Content        = _settingsPanel.AreValid() ? (object)_weatherPanel : _settingsPanel;
 }