Exemplo n.º 1
0
 internal TabFilter(TabSwitcher owner, string tabID, string[] resTypes, int linkPropID)
 {
     _owner      = owner;
     _tabID      = tabID;
     _resTypes   = resTypes;
     _linkPropId = linkPropID;
 }
Exemplo n.º 2
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponentSelf()
        {
            components = new Container();
            using (new LayoutSuspender(this))
            {
                // _barResourceTypeTabs
                _barResourceTypeTabs          = new TabSwitcher();
                _barResourceTypeTabs.Font     = new Font("Tahoma", 9.75F, FontStyle.Regular, GraphicsUnit.Point, ((Byte)(204)));
                _barResourceTypeTabs.Name     = "_barResourceTypeTabs";
                _barResourceTypeTabs.TabIndex = 1;
                _barResourceTypeTabs.Location = new Point(0, 6);
                _barResourceTypeTabs.Size     = new Size(648, 27);
                _barResourceTypeTabs.SetSite(this);

                // _barSearch
                _barSearch          = new SearchCtrl();
                _barSearch.Name     = "_barSearch";
                _barSearch.TabIndex = 2;
                _barSearch.Size     = _barSearch.OptimalSize;
                _barSearch.SetSite(this);
                _nDesiredToolbarWidth = _barSearch.OptimalSize.Width;

                // This Control
                Height = 32;
                Controls.Add(_barResourceTypeTabs);
                Controls.Add(_barSearch);

                SetStyle(ControlStyles.AllPaintingInWmPaint
                         | ControlStyles.CacheText
                         | ControlStyles.ContainerControl
                         | ControlStyles.ResizeRedraw
                         | ControlStyles.Selectable
                         | ControlStyles.UserPaint
                         | ControlStyles.Opaque
                         , true);
            }
        }
Exemplo n.º 3
0
 internal GoTabAction(TabSwitcher tabSwitcher, int index)
 {
     _tabSwitcher = tabSwitcher;
     _index       = index;
 }