/// <summary> /// Add the tool-bar button. /// </summary> protected void _addToolbarButton(System.Windows.Forms.ToolStrip strip, CadKit.Commands.Command command) { if (null != strip && null != command) { strip.Items.Add(command.ToolButton); } }
/// <summary> /// Add the menu button. /// </summary> protected void _addMenuButton(System.Windows.Forms.ToolStripMenuItem menu, CadKit.Commands.Command command) { lock (_mutex) { if (null != menu && null != command) { menu.DropDownItems.Add(command.MenuButton); } } }