public AddCalendarEvent(DateTime selectedDate)
        {
            InitializeComponent();
            string[] theDate = SimplePage.parseDate(selectedDate);

            // date selected displayed in the pop-up form
            startDate.Date = selectedDate;
            endDate.Date   = selectedDate;
            start_Date     = selectedDate;
        }
Beispiel #2
0
        public SimplePage()
        {
            Instance = this;
            InitializeComponent();

            // tapping an appointment
            schedule.MonthInlineAppointmentTapped += Schedule_MonthInlineAppointmentTapped;
            async void Schedule_MonthInlineAppointmentTapped(object sender, MonthInlineAppointmentTappedEventArgs args)
            {
                if (args.Appointment != null)
                {
                    add_calendar_event_button.IsEnabled = false;
                    var appointment = (args.Appointment as ScheduleAppointment);
                    await PopupNavigation.PushAsync(new EventSelected(appointment, "SimplePage"));

                    add_calendar_event_button.IsEnabled = true;
                }
            }

            refreshCalendar();;
        }