private void button1_Click(object sender, EventArgs e)
        {
            clsInsert clsInsert1;

            clsInsert1              = new clsInsert();
            clsInsert1.Eid          = int.Parse(textBox1.Text);
            clsInsert1.eName        = textBox2.Text;
            clsInsert1.ELastName    = textBox3.Text;
            clsInsert1.EContact     = textBox4.Text;
            clsInsert1.Edesignation = textBox5.Text;
            clsInsert1.ESalary      = textBox6.Text;
            clsInsert1.Insert();
            Hide();
        }
 public Controller(String formName)
 {
     if (formName == "frmInsert")
     {
         clsInsert1 = new clsInsert();
     }
     else if (formName == "frmDelete")
     {
         clsDelete1 = new clsDelete();
     }
     else if (formName == "frmUpdate")
     {
         clsUpdate1 = new clsUpdate();
     }
 }