Inheritance: 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;
        }