예제 #1
0
 void MonthView_OnTap(object sender, SchedulerGestureEventArgs e)
 {
     if (inNavigation || e.IntervalInfo == null)
     {
         return;
     }
     viewModel.Start = e.IntervalInfo.Start;
     inNavigation    = true;
     Navigation.PushAsync(new DayViewModule(viewModel, this.monthView.DataStorage));
 }
예제 #2
0
 void Scheduler_OnTap(object sender, SchedulerGestureEventArgs e)
 {
     if (inNavigation || e.IntervalInfo == null)
     {
         return;
     }
     viewModel.Start = e.IntervalInfo.Start;
     inNavigation    = true;
     Navigation.PushAsync(new DayViewModule(viewModel));
 }
예제 #3
0
        private void OnTap(object sender, SchedulerGestureEventArgs e)
        {
            if (e.AppointmentInfo == null)
            {
                ShowNewAppointmentEditPage(e.IntervalInfo);
                return;
            }
            AppointmentItem appointment = e.AppointmentInfo.Appointment;

            ShowAppointmentEditPage(appointment);
        }
        async void WorkWeekView_OnTap(object sender, SchedulerGestureEventArgs e)
        {
            if (inNavigation)
            {
                return;
            }
            Page appointmentPage = storage.CreateAppointmentPageOnTap(e, true);

            if (appointmentPage != null)
            {
                inNavigation = true;
                await Navigation.PushAsync(appointmentPage);
            }
        }
        async void Scheduler_OnTap(object sender, SchedulerGestureEventArgs e)
        {
            if (inNavigation)
            {
                return;
            }
            AppointmentEditPage appointmentEditPage = null;

            if (e.AppointmentInfo?.Appointment != null)
            {
                appointmentEditPage = new AppointmentEditPage(scheduler, e.AppointmentInfo.Appointment);
            }
            else if (e.IntervalInfo != null)
            {
                appointmentEditPage = new AppointmentEditPage(scheduler, e.IntervalInfo.Start, e.IntervalInfo.End, e.IntervalInfo.AllDay);
            }
            if (appointmentEditPage != null)
            {
                inNavigation = true;
                await Navigation.PushAsync(appointmentEditPage);
            }
        }
예제 #6
0
        async void Scheduler_OnTap(object sender, SchedulerGestureEventArgs e)
        {
            if (inNavigation)
            {
                return;
            }
            AppointmentEditPage appointmentEditPage = null;

            if (e.AppointmentInfo?.Appointment != null)
            {
                AppointmentItem appointmentItem = e.AppointmentInfo.Appointment;
                if (appointmentItem.IsOccurrence)
                {
                    string action = await DisplayActionSheet("Edit occurrence or pattern?", "Cancel", null, "Occurrence", "Pattern");

                    if (string.IsNullOrEmpty(action) || action == "Cancel")
                    {
                        return;
                    }
                    if (action == "Pattern")
                    {
                        appointmentItem = Scheduler.GetPattern(appointmentItem);
                    }
                }
                appointmentEditPage = new AppointmentEditPage(Scheduler, appointmentItem);
            }
            else if (e.IntervalInfo != null)
            {
                appointmentEditPage = new AppointmentEditPage(scheduler, e.IntervalInfo.Start, e.IntervalInfo.End, e.IntervalInfo.AllDay);
            }
            if (appointmentEditPage != null)
            {
                inNavigation = true;
                await Navigation.PushAsync(appointmentEditPage);
            }
        }