Пример #1
0
        private void InitializePages()
        {
            // EditUserPage
            editUserPage = new EditUserPage();
            this.AddPage(
                editUserPage,
                new MPMenuItem(editUserPage.PageID,
                               Resources.Caption_General,
                               Resources.Caption_General),
                MPMenu.POSITION_END);


            userMemberOf = new EditSimpleListPage(
                Resources.Caption_MemberOf,
                _username,
                Resources.LocalGroup_32,
                "User",
                "Is a member of the following groups: ",
                "Group",
                GetUserDescription,
                GetGroupList,
                AddUserToGroup,
                DeleteUserFromGroup,
                (EditDialog)this);

            this.AddPage(
                userMemberOf,
                new MPMenuItem(
                    userMemberOf.PageID,
                    Resources.Caption_MemberOf,
                    Resources.Caption_MemberOf),
                MPMenu.POSITION_END);
        }
 private void InitializePages()
 {
     // EditUserPage
     editUserPage = new EditUserPage();
     this.AddPage(
         editUserPage,
         new MPMenuItem(editUserPage.PageID,
             Resources.Caption_General,
             Resources.Caption_General),
         MPMenu.POSITION_END);
     
     
     userMemberOf = new EditSimpleListPage(
         Resources.Caption_MemberOf,
         _username,
         Resources.LocalGroup_32,
         "User",
         "Is a member of the following groups: ",
         "Group",
         GetUserDescription,
         GetGroupList,
         AddUserToGroup,
         DeleteUserFromGroup,
         (EditDialog) this);
     
     this.AddPage(
         userMemberOf,
         new MPMenuItem(
             userMemberOf.PageID,
             Resources.Caption_MemberOf,
             Resources.Caption_MemberOf),
         MPMenu.POSITION_END);
 }