Пример #1
0
 /// <summary>
 /// Method to call the Apply functionality for each of tab pages of type MPage.
 /// </summary>
 /// <param name="actionCause"></param>
 /// <returns></returns>
 protected override bool Apply(EditDialogAction actionCause)
 {
     if (Applied && !bDataWasChanged)
     {
         return(true);
     }
     //bool b = base.Apply(actionCause);
     foreach (MPPage page in this.GetPages())
     {
         if (page != null)
         {
             IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
             if (page.PageID.Trim().Equals("OUGeneralEditProperities"))
             {
                 OUGeneralEditPage _editPage = (OUGeneralEditPage)page;
                 if (!_editPage.OnApply())
                 {
                     return(false);
                 }
             }
             if (page.PageID.Trim().Equals("EditProperitiesAdvanced"))
             {
                 ADEditPage _editPage = (ADEditPage)page;
                 if (!_editPage.OnApply())
                 {
                     return(false);
                 }
             }
         }
     }
     Applied = true;
     return(true);
 }
Пример #2
0
        /// <summary>
        /// Method to initailize the tab pages for the property sheet
        /// </summary>
        private void InitializePages()
        {
            MPPage page = null;

            page = new OUGeneralEditPage();
            this.AddPage(page,
                         new MPMenuItem(page.PageID, "General", "General"),
                         MPMenu.POSITION_BEGINING
                         );

            page = new ADEditPage(this);
            this.AddPage(page,
                         new MPMenuItem(page.PageID, "Advanced", "Advanced"),
                         MPMenu.POSITION_END
                         );
        }
 /// <summary>
 /// Method to initailize the tab pages for the property sheet
 /// </summary>
 private void InitializePages()
 {
     MPPage page = null;        
     
     page = new OUGeneralEditPage();
     this.AddPage(page,
     new MPMenuItem(page.PageID, "General", "General"),
     MPMenu.POSITION_BEGINING
     );  
     
     page = new ADEditPage(this);
     this.AddPage(page,
     new MPMenuItem(page.PageID, "Advanced", "Advanced"),
     MPMenu.POSITION_END
     );
 }