Beispiel #1
0
        public AppViewModel()
        {
            this.ViewModels = new List <IPageViewModel>();
            this.ViewModels.Add(new TodoListsViewModel());
            this.ViewModels.Add(new AppointmentsViewModel());
            var loginVM = new LoginRegisterFormViewModel();

            loginVM.LoginSuccess += this.LoginSuccessful;
            this.LoginRegisterVM  = loginVM;
            this.CurrentViewModel = this.LoginRegisterVM;
        }
 public AppViewModel()
 {
     this.ViewModels = new List<IPageViewModel>();
     this.ViewModels.Add(new TodoListsViewModel());
     var loginVM = new LoginRegisterFormViewModel();
     loginVM.LoginSuccess += this.LoginSuccessful;
     this.LoginRegisterVM = loginVM;
     this.CurrentViewModel = this.LoginRegisterVM;
 }