private void simpleButtonHistoryPrescription_Click(object sender, EventArgs e) { Appointment appointment = GetFocusedHistoryAppointment(); if (appointment != null) { memberMyAppointmentPrescription = new FormMemberMyAppointmentPrescription(appointment); memberMyAppointmentPrescription.ShowDialog(); } }
private void gridViewAppointmentHistory_DoubleClick(object sender, EventArgs e) { Appointment appointment = GetFocusedAppointmentHistory(); if (appointment != null) { memberMyAppointmentPrescription = new FormMemberMyAppointmentPrescription(appointment); memberMyAppointmentPrescription.ShowDialog(); } }