Beispiel #1
0
 public StartUpView()
 {
     try
     {
         InitializeComponent();
         _viewModel                 = _viewModelLocator.StartUpViewModel;
         DataContext                = _viewModel;
         _viewModel.ErrorNotice    += OnErrorNotice;
         _viewModel.LogInNotice    += OnLogInNotice;
         _viewModel.MainMenuNotice += OnMainMenuNotice;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButton.OK);
     }
 }
Beispiel #2
0
 public StartUpWindow()
 {
     InitializeComponent();
     StartUpViewModel = new StartUpViewModel();
     DataContext      = StartUpViewModel;
 }
        public StartUpPage()
        {
            InitializeComponent();

            BindingContext = new StartUpViewModel();
        }
Beispiel #4
0
 public NavigateCommand(StartUpViewModel wvm)
 {
     mViewModel = wvm;
 }