private void newAppointmentToolStripMenuItem_Click(object sender, EventArgs e) { AppointmentForm app; // Determin if the user made a selection on the calendar to be passed to the new // appointment form. By default the dayview control sets the date to an abritray value so this // if statement checks if the selection is actually valid if (dvAppointments.SelectionStart >= dvAppointments.StartDate) { app = new AppointmentForm(dvAppointments.SelectionStart, dvAppointments.SelectionEnd); } else { app = new AppointmentForm(); } app.AppointmentManager = m_appMgr; app.ShowDialog(this); fillAppointments(); }
private void tsbAppointments_Click(object sender, EventArgs e) { AppointmentForm appFrm = new AppointmentForm(); appFrm.PatientID = m_patient.patID; appFrm.MdiParent = MdiParent; appFrm.Show(); }
private void cmiEditApp_Click(object sender, EventArgs e) { AppointmentForm frmApp = new AppointmentForm(dvAppointments.SelectedAppointment.AppointmentID, m_appMgr); frmApp.ShowDialog(this); fillAppointments(); }