private void ReloadTable(TimeSlotSource Source) { InvokeOnMainThread(() => { TableView.Source = Source; TableView.ReloadData(); ProgressRing.StopAnimating(); ProgressRing.Hidden = true; }); }
public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender) { base.PrepareForSegue(segue, sender); //set the seleted times on the appointment TimeSlotSource source = TableView.Source as TimeSlotSource; if (source != null) { TimeSlot ts = source.TimeSlots[TableView.IndexPathForSelectedRow.Row]; ApplicationData.Current.NewAppointment.StartDate = ts.StartTimeUtc.ToLocalTime(); ApplicationData.Current.NewAppointment.EndDate = ts.EndTimeUtc.ToLocalTime(); ApplicationData.Current.NewAppointment.AdvisorEmail = ts.AvailableStaff[0]; } }