Exemplo n.º 1
0
 private void SwitchMeal(object sender, UITabBarItemEventArgs e)
 {
     this.viewSource            = new TableViewSource(new List <string>(), this.DateTimeToDefaultFormat());
     this.viewSource.Identifier = this.applicationTabBar.SelectedItem.Title;
     this.viewSource.DocumentId = DocumentId;
     this.mealTableView.Source  = this.viewSource;
     this.resetTableView();
     this.mealTableView.ReloadData();
 }
Exemplo n.º 2
0
 private void InitData()
 {
     this.viewSource            = new TableViewSource(new List <string>(), this.DateTimeToDefaultFormat());
     this.viewSource.Identifier = this.applicationTabBar.SelectedItem.Title;
     this.viewSource.DocumentId = DocumentId;
     this.datepicker.Mode       = UIDatePickerMode.Date;
     this.datepicker.SetDate((NSDate)this.currrentDateTime, false);
     this.mealTableView.Source = this.viewSource;
     this.mealDocument         = new MealDocument();
     this.LoadDishesAsync().SafeFireAndForget();
 }