private void prescriptionAddNewItem_Click(object sender, EventArgs e) { EditTables.frmPrescriptionAE prescription = new EditTables.frmPrescriptionAE(0); if (prescription.ShowDialog() == DialogResult.OK) { LoadPrescriptionData(); } }
private void prescriptionEditItem_Click(object sender, EventArgs e) { if (prescriptionBindingSource.Current == null) { return; } EditTables.frmPrescriptionAE prescription = new EditTables.frmPrescriptionAE((int)((DataRowView)prescriptionBindingSource.Current)["ID"]); if (prescription.ShowDialog() == DialogResult.OK) { LoadPrescriptionData(); } }