Exemple #1
0
 public MainVM()
 {
     model = new Model();
     PageContainer.SetModel(model);
     CurrentPage = PageContainer.GetPageByType(PageType.StudentList);
     PageContainer.CurrentPageChanged += PageContainer_CurrentPageChanged;
     OpenGroupList   = new MvvmCommand(() => PageContainer.ChangePageTo(PageType.GroupList), () => true);
     OpenStudentList = new MvvmCommand(() => PageContainer.ChangePageTo(PageType.StudentList), () => true);
 }
Exemple #2
0
 void PageContainer_CurrentPageChanged(object sender, PageType e)
 {
     CurrentPage = PageContainer.GetPageByType(e);
     NotifyPropertyChanged("CurrentPage");
 }