private void NewRecurringAppointment()
 {
     FormAddAppointment formAdd = new FormAddAppointment(true);
     formAdd.ShowDialog();
     _Appointments.Load();
     GetAppointmentsOnSelectedDate(monthCalendar.SelectionStart);
     panelDailyView.Invalidate();
 }
 private void panelDailyView_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     IAppointment appointment = CheckForAppointment(e);
     if (appointment != null)
     {
         FormAddAppointment formApp = new FormAddAppointment((Appointment)appointment);
         formApp.ShowDialog();
         _Appointments.Load();
         GetAppointmentsOnSelectedDate(monthCalendar.SelectionStart);
         panelDailyView.Invalidate();
     }
 }
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     FormAddAppointment formAdd = new FormAddAppointment((Appointment)_SelectedAppointment);
     formAdd.ShowDialog();
     _Appointments.Load();
     GetAppointmentsOnSelectedDate(monthCalendar.SelectionStart);
     panelDailyView.Invalidate();
 }