void CreateRole() { FrmRoleEdit frmCreateRole = new FrmRoleEdit(); frmCreateRole.RoleChanged += OnCreateRole; frmCreateRole.ShowDialog(); pRoleManager.ListRolesAndBindToGrid(); }
void EditFocusedRole() { RoleEntity role = FocusedRoleRow; if (role == null) { MsgBox.Warn("请选中要修改的行。"); return; } FrmRoleEdit frmEditRole = new FrmRoleEdit(role); frmEditRole.RoleChanged += OnRoleChanged; frmEditRole.ShowDialog(); }