Beispiel #1
0
 public fController(String formName)
 {
     if (formName == "frmDelete")
     {
         clsDelete1 = new clsDelete();
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            clsDelete clsDelete1;

            clsDelete1 = new clsDelete();

            clsDelete1.Id1 = int.Parse(textBox1.Text);
            clsDelete1.deleteRecord();
            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();
     }
 }