Пример #1
0
        private bool ActivatePage(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);
        }
Пример #2
0
            public ImageCollection(MozItem item)
            {
                m_item               = item;
                m_imageIndex         = -1;
                m_focusImageIndex    = -1;
                m_selectedImageIndex = -1;

                m_image         = null;
                m_focusImage    = null;
                m_selectedImage = null;
            }
Пример #3
0
        private void AddPage(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);
        }
Пример #4
0
        private MozItem GetMozItem(string text, int imageIndex)
        {
            MozItem item = new MozItem();

            item.Name = "mozItem" + this.pages.Count + 1;
            item.Text = text;

            if (imageIndex < this.ImageList.Images.Count)
            {
                item.Images.NormalImage = this.ImageList.Images[imageIndex];
            }

            return(item);
        }
Пример #5
0
 public MozItemClickEventArgs(MozItem mozItem, MouseButtons button)
 {
     this.m_mozItem = mozItem;
     this.m_button  = button;
 }
Пример #6
0
 /// <summary>
 /// Initializes a new instance of the MozItemEventArgs class with default settings
 /// </summary>
 public MozItemClickEventArgs()
 {
     m_mozItem = null;
     m_button  = MouseButtons.Left;
 }
Пример #7
0
 public MozItemEventArgs(MozItem mozItem)
 {
     this.m_mozItem = mozItem;
 }
Пример #8
0
 /// <summary>
 /// Initializes a new instance of the MozItemEventArgs class with default settings
 /// </summary>
 public MozItemEventArgs()
 {
     m_mozItem = null;
 }