Ejemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     MyMethod myMethod = new MyMethod();
     myMethod.MyAdd1 = this.checkBox1.Checked;
     myMethod.MyAddReturnId1 = this.checkBox2.Checked;
     myMethod.MyDelete1 = this.checkBox3.Checked;
     myMethod.MyChange1 = this.checkBox4.Checked;
     myMethod.MySelectAll1 = this.checkBox5.Checked;
     myMethod.MySelectById1 = this.checkBox6.Checked;
     myMethod.MySelectByWhere1 = this.checkBox7.Checked;
     form3.myMethod = myMethod;
     this.Close();
 }
Ejemplo n.º 2
0
 private void Form3_Load(object sender, EventArgs e)
 {
     myMethod = new MyMethod();
     myMethod.MyAdd1 = true;
     myMethod.MyAddReturnId1 = true;
     myMethod.MyChange1 = true;
     myMethod.MyDelete1 = true;
     myMethod.MySelectAll1 = true;
     myMethod.MySelectById1 = true;
     myMethod.MySelectByWhere1 = true;
 }