Esempio n. 1
0
 /// <summary>
 /// Adds a <see cref="PanelToolStripItem"/>.
 /// </summary>
 /// <param name="p_pdiItem">The <see cref="PanelToolStripItem"/> to add.</param>
 public void addToolStripItem(PanelToolStripItem p_pdiItem)
 {
     if (m_pnlToolStrip.Direction == Orientation.Horizontal)
     {
         m_pnlToolStrip.Height = this.Height + SystemInformation.HorizontalScrollBarHeight;
     }
     else
     {
         m_pnlToolStrip.Width = this.Width + SystemInformation.VerticalScrollBarWidth;
     }
     m_pnlToolStrip.addToolStripItem(p_pdiItem);
 }