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