Пример #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;
        }
Пример #2
0
 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;
 }