Наследование: System.Windows.Forms.UserControl
Пример #1
0
 public void UpdatePages()
 {
     foreach (PageProp pageProp in pages.Values)
     {
         PropertyPage page = pageProp.Page;
         page.OnInit();
     }
 }
Пример #2
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);
        }
Пример #3
0
        public void Init()
        {
            foreach (PageProp pageProp in pages.Values)
            {
                PropertyPage page = pageProp.Page;

                pagePanel.Controls.Add(page);
                page.Dock    = DockStyle.Fill;
                page.Visible = false;
            }

            if (this.pages.Count != 0)
            {
                ActivatePage(this.mozPane1.Items[0]);
            }
        }
Пример #4
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);
        }
Пример #5
0
 public void AddPage(string text, int imageIndex, PropertyPage page)
 {
     this.AddPage(this.GetMozItem(text, imageIndex), page);
 }
Пример #6
0
 public void AddPage(string text, PropertyPage page)
 {
     this.AddPage(this.GetMozItem(text), page);
 }
Пример #7
0
 public void AddPage(string text, int imageIndex, PropertyPage page)
 {
     this.AddPage(this.GetMozItem(text, imageIndex), page);
 }
Пример #8
0
 public void AddPage(string text, PropertyPage page)
 {
     this.AddPage(this.GetMozItem(text), page);
 }
Пример #9
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);
        }
Пример #10
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;
        }