Beispiel #1
0
        private void AddPage(Pabo.MozBar.MozItem item, PropertyPage page)
        {
            PageProp pageProp = new PageProp();

            pageProp.Page    = page;
            pageProp.MozItem = item;

            this.mozPane1.Items.Add(item);

            this.pages.Add(item.Name, pageProp);
        }
Beispiel #2
0
        private bool ActivatePage(Pabo.MozBar.MozItem item)
        {
            if (!this.pages.ContainsKey(item.Name))
            {
                return(false);
            }

            PageProp pageProp = this.pages[item.Name];

            PropertyPage page = pageProp.Page;

            if (activePage != null)
            {
                activePage.Visible = false;
            }

            activePage = page;

            if (activePage != null)
            {
                this.mozPane1.SelectByName(item.Name);

                activePage.Visible = true;

                if (!page.IsInit)
                {
                    page.OnInit();

                    page.IsInit = true;
                }

                activePage.OnSetActive();
            }

            return(true);
        }
Beispiel #3
0
        private void AddPage(Pabo.MozBar.MozItem item, PropertyPage page)
        {
            PageProp pageProp = new PageProp();

            pageProp.Page = page;
            pageProp.MozItem = item;

            this.mozPane1.Items.Add(item);

            this.pages.Add(item.Name, pageProp);
        }