private void InitializeMenu(MenuDefinition menuDefinition) { mainMenu.Items.Clear(); foreach (var item in menuDefinition.Items) { mainMenu.Items.Add(CreateMenuItem(item)); } }
private void InitializeContextMenu(MenuDefinition menuDefinition) { viewerContextMenu.Items.Clear(); foreach (var item in menuDefinition.Items) { viewerContextMenu.Items.Add(CreateMenuItem(item)); } }
private void InitializeTaskPaneMenu(MenuDefinition menuDefinition) { taskMenu.DropDown.Items.Clear(); taskMenu.DropDownDirection = ToolStripDropDownDirection.BelowLeft; foreach (var item in menuDefinition.Items) { taskMenu.DropDown.Items.Add(CreateMenuItem(item)); } }