public UpdatePassword() { InitializeComponent(); users = UserDAO.GetList(); }
private void UpdateTable() { dgvShowUsers.DataSource = null; dgvShowUsers.DataSource = UserDAO.GetUsersTable(); nudUserID.Maximum = Convert.ToInt32(dgvShowUsers.Rows[dgvShowUsers.RowCount - 1].Cells[0].Value.ToString()); }