private void updateRole() { if (dataGridView.SelectedRows.Count < 1) { return; } string R_Code = dataGridView.SelectedRows[0].Cells["R_Code"].Value.ToString(); frmRoleEdit frmRoleEdit = new frmRoleEdit(this, frmMain.User, R_Code, 2); frmRoleEdit.ShowDialog(); }
private void addRole() { frmRoleEdit frmRoleEdit = new frmRoleEdit(this, frmMain.User, "", 1); frmRoleEdit.ShowDialog(); }