private void EditRole() { Users targetUser = UserDataGrid.CurrentRow.DataBoundItem as Users; FrmUserRoleSetup dlgRoleEdit = new FrmUserRoleSetup(targetUser, rbacService_); if (dlgRoleEdit.ShowDialog() == DialogResult.OK) { Init(); } }
private void AddRoleButton_Click(object sender, EventArgs e) { FrmUserRoleSetup dlgRoleAdd = new FrmUserRoleSetup(rbacService_); if (dlgRoleAdd.ShowDialog() == DialogResult.OK) { Init(); } ; }