Beispiel #1
0
        public MainViewModel()
        {
            // _projektNameEingabeView = ViewModelLocator.Instance.TestView;
            showProjekte();
            OeffneProjektNameEingabeCommand = new RelayCommand(ChangeToProjektNameEingabeView);
            ZurueckButtonCommand            = new RelayCommand(ChangeToStartMenuView);
            ChangePageCommand = new RelayCommand <StartMenuViewModelBase>(p => ChangePageAction(p));


            _viewModelList.Add(ViewModelLocator.Instance.ProjektNameEingabeViewModel);


            // _viewModelList.Add(ViewModelLocator.Instance.View3);

            _currentPageViewModel = _startMenuViewModel;
        }
Beispiel #2
0
 public void ChangeToProjektNameEingabeView()
 {
     // _projektNameEingabeViewModel = ViewModelLocator.Instance.TestView;
     setProjektNameEingabeView = _projektNameEingabeViewModel;
     CurrentPageViewModel      = _projektNameEingabeViewModel;
 }
Beispiel #3
0
 private void ChangePageAction(StartMenuViewModelBase viewModel)
 {
     CurrentPageViewModel = viewModel;
     //CurrentPageViewModel = ViewModelList.FirstOrDefault(vm => vm == viewModel);
     // CurrentPageViewModel = ViewModelList.
 }