Exemple #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)
                {
                    if (page.PageID.Trim().Equals("EditProperitiesAdvanced"))
                    {
                        ADEditPage _editPage = (ADEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                    if (page.PageID.Trim().Equals("ContainerGeneralEditProperities"))
                    {
                        ContainerGeneralEditPage _editPage = (ContainerGeneralEditPage)page;
                        if (!_editPage.OnApply())
                        {
                            return(false);
                        }
                    }
                }
            }
            Applied = true;
            return(true);
        }
Exemple #2
0
        /// <summary>
        /// Method to initailize the tab pages for the property sheet
        /// </summary>
        private void InitializePages()
        {
            MPPage page = null;

            if (bIsGeneralpageReq)
            {
                page = new ContainerGeneralEditPage();
                this.AddPage(page,
                             new MPMenuItem(page.PageID, "General", "General"),
                             MPMenu.POSITION_END
                             );
            }

            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;

        if (bIsGeneralpageReq)
        {
            page = new ContainerGeneralEditPage();
            this.AddPage(page,
            new MPMenuItem(page.PageID, "General", "General"),
            MPMenu.POSITION_END
            );
        }
        
        page = new ADEditPage(this);
        this.AddPage(page,
        new MPMenuItem(page.PageID, "Advanced", "Advanced"),
        MPMenu.POSITION_END
        );
    }