private void editItemToolStripMenuItem_Click(object sender, EventArgs e)
        {
            List <CalendarItem> selectedItems = (List <CalendarItem>)calendar1.GetSelectedItems();
            CalendarItem        selected      = selectedItems[0];

            if (Application.OpenForms["NewAppointment"] as NewAppointment == null && thisPatientID == 0)
            {
                NewAppointment newAppointment = new NewAppointment(true, selected, thisProviderID, calendar1, this);
                newAppointment.Show();
            }
        }
        private void calendar1_ItemCreating(object sender, CalendarItemCancelEventArgs e)
        {
            if (Application.OpenForms["NewAppointment"] as NewAppointment == null && thisPatientID == 0)
            {
                NewAppointment newAppointment = new NewAppointment(e.Item, thisProviderID, calendar1, this);
                newAppointment.Show();
            }

            if (Application.OpenForms["NewAppointmentFromPatientView"] as NewAppointmentFromPatientView == null && thisPatientID != 0)
            {
                NewAppointmentFromPatientView newAppointment = new NewAppointmentFromPatientView(thisPatientID, thisProviderID, e.Item, calendar1, _items, this, this.patientHome);
                newAppointment.Show();
            }
        }