//launch form to edit an event
 private void editEventToolStripMenuItem_Click(object sender, EventArgs e)
 {
     EditEventForm form = new EditEventForm(calendarEvents);
     form.ShowDialog();
     calendarView.Invalidate();
     updateLeftPanel();
 }
 //event handler for when the calendar view is double clicked
 private void calendarView_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     Appointment selectedAppt = calendarView.GetAppointmentAt(e.X, e.Y);
     //if an appointment was selected bring up the edit event form, populating
     //  the form with the event information using the eventID stored in the
     //  appointment's note field
     if (selectedAppt != null) {
         int eventID = selectedAppt.AppointmentId;
         EditEventForm form = new EditEventForm(calendarEvents);
         form.loadEvent(eventID);
         form.ShowDialog();
         calendarView.Invalidate();
         updateLeftPanel();
     }
 }