Ejemplo n.º 1
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;
     }
 }
Ejemplo n.º 2
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);
 }