コード例 #1
0
 protected override void OnNavigatedTo(System.Windows.Navigation.NavigationEventArgs e)
 {
     base.OnNavigatedTo(e);
     int id = int.Parse(NavigationContext.QueryString["classroom"]);
     classroom = (from c in app.School.ClassRooms where c.Id == id select c).FirstOrDefault();
     this.DataContext = classroom;
 }
コード例 #2
0
ファイル: SchoolViewModel.cs プロジェクト: MarxW/VocabTrainer
 public async void FillViewData(BasicClassRoom[] rooms)
 {
     await Task.Run(() =>
     {
         foreach (BasicClassRoom room in rooms)
         {
             _classRooms.AddOrUpdateKeyValue(room);
         }
     });
     NotifyPropertyChanged("ClassRooms");
 }