Example #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);
     }
 }
Example #2
0
 public StartUpWindow()
 {
     InitializeComponent();
     StartUpViewModel = new StartUpViewModel();
     DataContext      = StartUpViewModel;
 }
        public StartUpPage()
        {
            InitializeComponent();

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