private void BtnAddPrescription_Click(object sender, EventArgs e) { var patient = patients[lstPatients.SelectedIndices[0]]; var form = new D_PrescriptionForm(Employee, patient, p => { LoadPrescription(); }); form.ShowDialog(this); }
private void LstPrescription_DoubleClick(object sender, EventArgs e) { var patient = patients[lstPatients.SelectedIndices[0]]; var prescription = prescriptions[lstPrescription.SelectedIndex]; var form = new D_PrescriptionForm(Employee, patient, p => { LoadPrescription(); }, prescription); form.ShowDialog(this); }