Esempio n. 1
0
        private void button1_Click_1(object sender, EventArgs e)
        {
            panel1.Controls.Clear();
            Form f = new BloodlettingEventPopUp(dh);

            f.TopLevel   = false;
            f.AutoScroll = true;
            panel1.Controls.Add(f);

            f.FormBorderStyle = FormBorderStyle.None;
            MessageBox.Show("2");
            f.Dock = DockStyle.Fill;
            f.Show();
            MessageBox.Show("3");
        }
Esempio n. 2
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();
     }
 }
Esempio n. 3
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(); }
     }
 }