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