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(); }
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(); } }
private void UpdateAppointmentCount() { NewAppNavController t = (NewAppNavController)TabBarController.ViewControllers[1]; t.UpdateAppointmentsCount(); }