Example #1
0
 private void prescriptionAddNewItem_Click(object sender, EventArgs e)
 {
     EditTables.frmPrescriptionAE prescription = new EditTables.frmPrescriptionAE(0);
     if (prescription.ShowDialog() == DialogResult.OK)
     {
         LoadPrescriptionData();
     }
 }
Example #2
0
        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();
            }
        }