Пример #1
0
        void CreateRole()
        {
            FrmRoleEdit frmCreateRole = new FrmRoleEdit();

            frmCreateRole.RoleChanged += OnCreateRole;
            frmCreateRole.ShowDialog();
            pRoleManager.ListRolesAndBindToGrid();
        }
Пример #2
0
        void EditFocusedRole()
        {
            RoleEntity role = FocusedRoleRow;

            if (role == null)
            {
                MsgBox.Warn("请选中要修改的行。");
                return;
            }

            FrmRoleEdit frmEditRole = new FrmRoleEdit(role);

            frmEditRole.RoleChanged += OnRoleChanged;
            frmEditRole.ShowDialog();
        }