Ejemplo 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 = Height + SystemInformation.HorizontalScrollBarHeight;
     }
     else
     {
         m_pnlToolStrip.Width = Width + SystemInformation.VerticalScrollBarWidth;
     }
     m_pnlToolStrip.addToolStripItem(p_pdiItem);
 }
Ejemplo n.º 2
0
 /// <summary>
 ///   Removes a <see cref="PanelToolStripItem" />.
 /// </summary>
 /// <param name="p_pdiItem">The <see cref="PanelToolStripItem" /> to remove.</param>
 public void removeToolStripItem(PanelToolStripItem p_pdiItem)
 {
     m_pnlToolStrip.removeToolStripItem(p_pdiItem);
 }
Ejemplo n.º 3
0
 /// <summary>
 ///   Removes a <see cref="PanelToolStripItem" /> to the panel.
 /// </summary>
 /// <param name="p_pdiItem">The <see cref="PanelToolStripItem" /> to remove.</param>
 public void removeToolStripItem(PanelToolStripItem p_pdiItem)
 {
     p_pdiItem.Selected -= psiButton_Selected;
     Controls.Remove(p_pdiItem.Button);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///   Adds a <see cref="PanelToolStripItem" /> to the panel.
 /// </summary>
 /// <param name="p_pdiItem">The <see cref="PanelToolStripItem" /> to add.</param>
 public void addToolStripItem(PanelToolStripItem p_pdiItem)
 {
     p_pdiItem.Selected += psiButton_Selected;
     Controls.Add(p_pdiItem.Button);
 }