private void btnAdd_Click(object sender, EventArgs e) { User oUser = new User(); oUser.sUserFirstName = inptNewUserName.Text; oUser.sUserLastName = inptNewUserSurname.Text; oUser.sUserName = inptNewUserUsername.Text; oUser.sUserPassword = inptNewUserPassword.Text; Crud Crud = new Crud(); Crud.AddNewUser(oUser); this.FormUserList.DataGridViewUsers.DataSource = Crud.GetUsers(); this.Hide(); }