Ejemplo n.º 1
0
 public void updatePeople(People p,string surname, string firstname, string password, string comment)
 {
     p.Firstname = firstname;
     p.Surname = surname;
     p.Password = password;
     p.Comment = comment;
 }
Ejemplo n.º 2
0
 private void btnDeletePeople_Click(object sender, EventArgs e)
 {
     if (this.dgvPeople.SelectedRows.Count > 0)
     {
         _target = (People)this.dgvPeople.SelectedRows[0].DataBoundItem;
         _controler.Peoples.Remove(_target);
         _target = null;
     }
 }
Ejemplo n.º 3
0
 public People addPeople(string surname, string firstname, string password, string comment)
 {
     People p = new People(surname, firstname, password, comment);
     _peoples.Add(p);
     return p;
 }
Ejemplo n.º 4
0
 private void btnUpdate_Click(object sender, EventArgs e)
 {
     if (this.dgvPeople.SelectedRows.Count > 0)
     {
         _target = (People)this.dgvPeople.SelectedRows[0].DataBoundItem;
         PeopleForm f = new PeopleForm("WTF you are ?", this, true, _target.Surname, _target.Firstname, _target.Password, _target.Comment);
         f.ShowDialog();
     }
 }