private void UpdateTable()
        {
            //load the appointments
            _tableSource     = new AppointmentsTableSource(ApplicationData.Current.Appointments);
            TableView.Source = _tableSource;
            //update appointments count
            NewAppNavController t = (NewAppNavController)TabBarController.ViewControllers[1];

            t?.UpdateAppointmentsCount();
            //reload the tableview
            TableView.ReloadData();
        }
示例#2
0
 public override void ViewWillAppear(bool animated)
 {
     base.ViewWillAppear(animated);
     //load the client data
     if (ApplicationData.Current.HasErrors)
     {
         ShowErrorState();
     }
     else
     {
         UpdateClientData();
         StopLoadState();
         //set the appointment count
         NewAppNavController t = (NewAppNavController)TabBarController.ViewControllers[1];
         t?.UpdateAppointmentsCount();
     }
 }
示例#3
0
        private void UpdateAppointmentCount()
        {
            NewAppNavController t = (NewAppNavController)TabBarController.ViewControllers[1];

            t.UpdateAppointmentsCount();
        }