private void EditRole() { Roles targetRole = RoleDataGrid.CurrentRow.DataBoundItem as Roles; FrmRoleSetup dlgRoleEdit = new FrmRoleSetup(targetRole, rbacService_, menuService_); if (dlgRoleEdit.ShowDialog() == DialogResult.OK) { Init(); } }
private void AddRoleButton_Click(object sender, EventArgs e) { FrmRoleSetup dlgRoleAdd = new FrmRoleSetup(rbacService_, menuService_); if (dlgRoleAdd.ShowDialog() == DialogResult.OK) { Init(); } ; }