Beispiel #1
0
 private void InitializeMenu(MenuDefinition menuDefinition)
 {
     mainMenu.Items.Clear();
     foreach (var item in menuDefinition.Items)
     {
         mainMenu.Items.Add(CreateMenuItem(item));
     }
 }
Beispiel #2
0
 private void InitializeContextMenu(MenuDefinition menuDefinition)
 {
     viewerContextMenu.Items.Clear();
     foreach (var item in menuDefinition.Items)
     {
         viewerContextMenu.Items.Add(CreateMenuItem(item));
     }
 }
Beispiel #3
0
 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));
     }
 }
Beispiel #4
0
 private void InitializeMenu(MenuDefinition menuDefinition)
 {
     mainMenu.Items.Clear();
     foreach (var item in menuDefinition.Items)
     {
         mainMenu.Items.Add(CreateMenuItem(item));
     }
 }
Beispiel #5
0
 private void InitializeContextMenu(MenuDefinition menuDefinition)
 {
     viewerContextMenu.Items.Clear();
     foreach (var item in menuDefinition.Items)
     {
         viewerContextMenu.Items.Add(CreateMenuItem(item));
     }
 }
Beispiel #6
0
 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));
     }
 }