Пример #1
0
 private void btnShow_Click(object sender, EventArgs e)
 {
     //-----CREATE NEW USER-----
     u = new User();
     // formUser = new FormCHild2(this);
     formUser = new FormCHild2(u);
     ChildResultUser();
 }
Пример #2
0
 private void btnEdit_Click(object sender, EventArgs e)
 {
     u         = new User();
     u.Name    = txtName.Text;
     u.Surname = txtSurname.Text;
     u.Age     = int.Parse(numAge.Value.ToString());
     //   formUser = new FormCHild2(this);
     formUser = new FormCHild2(u);
     ChildResultUser();
 }