コード例 #1
0
        /// <summary>
        /// Method to initailize the tab pages for the property sheet
        /// </summary>
        private void InitializePages()
        {
            MPPage page = null;

            page = new LogPropertiesPage(_container, _el, _plugin, _parentPage);
            this.AddPage(page,
                         new MPMenuItem(page.PageID, "General", "General"),
                         MPMenu.POSITION_END);

            page = new EventFilterControl(_ef);
            this.AddPage(page,
                         new MPMenuItem(page.PageID, "Filter", "Filter"),
                         MPMenu.POSITION_END);

            if (sShowPage != null && sShowPage != "")
            {
                ShowPage(sShowPage);
            }
        }
コード例 #2
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)
        {
            //bool b = base.Apply(actionCause);
            bool retVal = false;

            Applied = true;

            foreach (MPPage page in this.GetPages())
            {
                if (page != null)
                {
                    IDirectoryPropertiesPage ipp = page as IDirectoryPropertiesPage;
                    if (page.PageID.Trim().Equals("LogProperities"))
                    {
                        LogPropertiesPage _logPage = (LogPropertiesPage)page;
                        if (_logPage.OnOkApply())
                        {
                            retVal = true;
                        }
                        else
                        {
                            retVal = true;
                        }
                    }
                    if (page.PageID.Trim().Equals("FilterProperities"))
                    {
                        EventFilterControl _filterControl = (EventFilterControl)page;
                        if (_filterControl.OnOkApply())
                        {
                            retVal = true;
                        }
                        else
                        {
                            retVal = false;
                        }
                    }
                }
            }

            return(retVal);
        }
コード例 #3
0
    /// <summary>
    /// Method to initailize the tab pages for the property sheet
    /// </summary>
    private void InitializePages()
    {
        MPPage page = null;

        page = new LogPropertiesPage(_container, _el, _plugin, _parentPage);
        this.AddPage(page,
        new MPMenuItem(page.PageID, "General", "General"),
        MPMenu.POSITION_END);

        page = new EventFilterControl(_ef);
        this.AddPage(page,
        new MPMenuItem(page.PageID, "Filter", "Filter"),
        MPMenu.POSITION_END);

        if (sShowPage != null && sShowPage != "")
        {
            ShowPage(sShowPage);
        }
    }