예제 #1
0
 private void btnAddDrug_Click(object sender, EventArgs e)
 {
     EditTables.frmDrugAE drug = new EditTables.frmDrugAE(0);
     if (drug.ShowDialog() == DialogResult.OK)
     {
         LoadDrugData();
     }
 }
예제 #2
0
 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();
     }
 }