private void btnAddDrug_Click(object sender, EventArgs e) { EditTables.frmDrugAE drug = new EditTables.frmDrugAE(0); if (drug.ShowDialog() == DialogResult.OK) { LoadDrugData(); } }
private void btnEditDrug_Click(object sender, EventArgs e) { if (drugBindingSource.Current == null) { return; } EditTables.frmDrugAE drug = new EditTables.frmDrugAE((int)((DataRowView)drugBindingSource.Current)["ID"]); if (drug.ShowDialog() == DialogResult.OK) { LoadDrugData(); } }