/// <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); }
/// <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); }
/// <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); }
/// <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); }