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