Exemple #1
0
 private void add_button_donor_Click(object sender, EventArgs e)
 {
     if (Mode == 1)
     {
         Form A = new Bloodletting_Profile_Popup(dh);
         A.ShowDialog();
         refresh();
     }
     else
     {
         Form A = new BloodlettingEventPopUp(dh);
         A.ShowDialog();
         refresh();
     }
 }
Exemple #2
0
 private void OpenEvent()
 {
     if (Mode == 1)
     {
         //try
         {
             Form A = new Bloodletting_Profile_Popup(int.Parse(bloodletting_dgv.CurrentRow.Cells["blooddonorID"].Value.ToString()), dh);
             A.ShowDialog();
             refresh();
         }
         // catch { dh.conn.Close(); }
     }
     else
     {
         //  try
         {
             Form A = new BloodlettingEventPopUp(int.Parse(bloodletting_dgv.CurrentRow.Cells["bloodDonationEventID"].Value.ToString()), dh);
             A.ShowDialog();
             refresh();
         }
         //   catch { dh.conn.Close(); }
     }
 }