protected virtual void DrawInstanceSpecificContextMenu(ContextMenuStrip contextMenu, IExtendContextMenu workInstance) { List<ToolStripMenuItem> contextMenuStrips = workInstance.GetStripsToAdd(); if (contextMenuStrips == null || contextMenuStrips.Count == 0) { return; } foreach (ToolStripMenuItem contextMenuStrip in contextMenuStrips) { contextMenu.Items.Add(contextMenuStrip); } contextMenu.Items.Add("-"); }
protected virtual void DrawInstanceSpecificContextMenu(ContextMenuStrip contextMenu, IExtendContextMenu workInstance) { List <ToolStripMenuItem> contextMenuStrips = workInstance.GetStripsToAdd(); if (contextMenuStrips == null || contextMenuStrips.Count == 0) { return; } foreach (ToolStripMenuItem contextMenuStrip in contextMenuStrips) { contextMenu.Items.Add(contextMenuStrip); } contextMenu.Items.Add("-"); }