private void AptCalendar_AppointmentDblClicked(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("AptCalendar_AppointmentDblClicked");
            //display appointment
            AppointmentEventArgs aea = e as AppointmentEventArgs;
            Appointment a = aea.Point;

            AppointmentEditForm ef = new AppointmentEditForm();
            ef.DataContext = a;
            ef.ShowDialog();
            Changed();
        }
Esempio n. 2
0
        private void AptCalendar_AppointmentDblClicked(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("AptCalendar_AppointmentDblClicked");
            //display appointment
            AppointmentEventArgs aea = e as AppointmentEventArgs;
            Appointment          a   = aea.Point;

            AppointmentEditForm ef = new AppointmentEditForm();

            ef.DataContext = a;
            ef.ShowDialog();
            Changed();
        }
        private void AptCalendar_DayBoxDoubleClicked(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("AptCalendar_DayBoxDoubleClicked");
            //new appointment
            NewAppointmentEventArgs aea = e as NewAppointmentEventArgs;

            AppointmentEditForm ef = new AppointmentEditForm();
            Appointment ap = new Appointment();
            ap.ApDate = aea.StartDate;
            ef.DataContext = ap;
            ef.ShowDialog();
            Changed();
        }
Esempio n. 4
0
        private void AptCalendar_DayBoxDoubleClicked(object sender, RoutedEventArgs e)
        {
            //MessageBox.Show("AptCalendar_DayBoxDoubleClicked");
            //new appointment
            NewAppointmentEventArgs aea = e as NewAppointmentEventArgs;

            AppointmentEditForm ef = new AppointmentEditForm();
            Appointment         ap = new Appointment();

            ap.ApDate      = aea.StartDate;
            ef.DataContext = ap;
            ef.ShowDialog();
            Changed();
        }