コード例 #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;
 }