Beispiel #1
0
 private void ReloadTable(TimeSlotSource Source)
 {
     InvokeOnMainThread(() => {
         TableView.Source = Source;
         TableView.ReloadData();
         ProgressRing.StopAnimating();
         ProgressRing.Hidden = true;
     });
 }
Beispiel #2
0
        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];
            }
        }