private void EditUser(DataGridView dgv) { string uid = dgv.Rows[dgv.SelectedCells[0].RowIndex].Cells["user_id"].Value.ToString(); string urid = "0"; if (dgv.Name == "_dgv2") { urid = dgv.Rows[dgv.SelectedCells[0].RowIndex].Cells["ur_id"].Value.ToString(); } globalData.update = false; AddEditUser aeu = new AddEditUser(uid, urid, cbSDiv.SelectedItem.ToString()); aeu.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { AddEditUser aeu = new AddEditUser(cbSDiv.SelectedItem.ToString()); aeu.ShowDialog(); }
private void bt_ManageUser_Click(object sender, EventArgs e) { AddEditUser addEditUser = new AddEditUser(); addEditUser.ShowDialog(); }
private void manageUserToolStripMenuItem_Click(object sender, EventArgs e) { AddEditUser addEditUser = new AddEditUser(); addEditUser.ShowDialog(); }
public void AddUser(AddEditUser model) { WebSecurity.CreateUserAndAccount(model.UserName, model.Password); System.Web.Security.Roles.AddUserToRoles(model.UserName, model.RoleName); }