Exemple #1
0
 public MainPanelPage()
 {
     InitializeComponent();
     viewModel = ViewModelManager.CreateViewModel <MainPanelViewModel>(this);
     ForecastTypeComboBox.SelectionChanged += ForecastTypeComboBox_Selected;
     this.Loaded += (s, e) => viewModel.PropertyChanged += ViewModel_PropertyChanged;
 }
 public MainWindow()
 {
     InitializeComponent();
     viewModel = ViewModelManager.CreateViewModel <MainWindowViewModel>(this);
     InitializeTrayIcon();
     viewModel.PropertyChanged += ViewModel_PropertyChanged;
 }
 public ForecastPage()
 {
     InitializeComponent();
     ViewModelManager.CreateViewModel <ForecastPanelViewModel>(this);
 }
 public ConnectionFailedPage()
 {
     InitializeComponent();
     ViewModelManager.CreateViewModel <ConnectionFailedPanelViewModel>(this);
 }
 public OptionsPage()
 {
     InitializeComponent();
     ViewModelManager.CreateViewModel <OptionsPanelViewModel>(this);
 }
 public NotFoundPage()
 {
     InitializeComponent();
     ViewModelManager.CreateViewModel <NotFoundPanelViewModel>(this);
 }