internal ToolStripPanelSelectionGlyph(Rectangle bounds, Cursor cursor, IComponent relatedComponent, IServiceProvider provider, ToolStripPanelSelectionBehavior behavior) : base(bounds, cursor, relatedComponent, behavior)
 {
     this.relatedBehavior = behavior;
     this.provider = provider;
     this.relatedPanel = relatedComponent as ToolStripPanel;
     this.behaviorService = (BehaviorService) provider.GetService(typeof(BehaviorService));
     if ((this.behaviorService != null) && (((IDesignerHost) provider.GetService(typeof(IDesignerHost))) != null))
     {
         this.UpdateGlyph();
     }
 }
Example #2
0
 internal void ExpandTopPanel()
 {
     if (this.containerSelectorGlyph == null)
     {
         this.behavior = new ToolStripPanelSelectionBehavior(this.panel, base.Component.Site);
         this.containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.Default, this.panel, base.Component.Site, this.behavior);
     }
     if ((this.panel != null) && (this.panel.Dock == DockStyle.Top))
     {
         this.panel.Padding = new System.Windows.Forms.Padding(0, 0, 0x19, 0x19);
         this.containerSelectorGlyph.IsExpanded = true;
     }
 }
Example #3
0
 internal Glyph GetGlyph()
 {
     if (this.panel != null)
     {
         if (this.containerSelectorGlyph == null)
         {
             this.behavior = new ToolStripPanelSelectionBehavior(this.panel, base.Component.Site);
             this.containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.Default, this.panel, base.Component.Site, this.behavior);
         }
         if (this.panel.Visible)
         {
             return(this.containerSelectorGlyph);
         }
     }
     return(null);
 }
 internal Glyph GetGlyph()
 {
     if (this.panel != null)
     {
         if (this.containerSelectorGlyph == null)
         {
             this.behavior = new ToolStripPanelSelectionBehavior(this.panel, base.Component.Site);
             this.containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.Default, this.panel, base.Component.Site, this.behavior);
         }
         if (this.panel.Visible)
         {
             return this.containerSelectorGlyph;
         }
     }
     return null;
 }
 internal void ExpandTopPanel()
 {
     if (this.containerSelectorGlyph == null)
     {
         this.behavior = new ToolStripPanelSelectionBehavior(this.panel, base.Component.Site);
         this.containerSelectorGlyph = new ToolStripPanelSelectionGlyph(Rectangle.Empty, Cursors.Default, this.panel, base.Component.Site, this.behavior);
     }
     if ((this.panel != null) && (this.panel.Dock == DockStyle.Top))
     {
         this.panel.Padding = new System.Windows.Forms.Padding(0, 0, 0x19, 0x19);
         this.containerSelectorGlyph.IsExpanded = true;
     }
 }