Example #1
0
 public void GenerateActions(ActionItemCollection actionItems)
 {
     foreach (IActionItem ai in actionItems)
     {
         ai.Generate(this);
     }
 }
 public void Merge(ActionItemCollection items)
 {
     foreach (IActionItem actionItem in items)
     {
         ActionItemSubMenu subMenu = actionItem as ActionItemSubMenu;
         if (subMenu != null)
         {
             ActionItemSubMenu currentSubMenu = FindAddSubMenu(subMenu.SubMenuText, subMenu.Order);
             currentSubMenu.Actions.Merge(subMenu.Actions);
         }
         else
         {
             Add(actionItem);
         }
     }
 }
Example #3
0
 public GenerateActionArgs(ActionCollection actions, ActionItemCollection menu, ActionItemCollection toolBar)
 {
     this.actions = actions;
     this.menu    = menu;
     this.toolBar = toolBar;
 }
Example #4
0
 public GenerateActionArgs(Generator g, Control control)
 {
     this.actions = new ActionCollection(g, control);
     this.menu    = new ActionItemCollection(actions);
     this.toolBar = new ActionItemCollection(actions);
 }
Example #5
0
 public ActionItemSubMenu(ActionCollection actions, string subMenuText)
 {
     this.actions = new ActionItemCollection(actions);
     this.subMenuText = subMenuText;
 }
Example #6
0
		public GenerateActionArgs(ActionCollection actions, ActionItemCollection menu, ActionItemCollection toolBar)
		{
			this.actions = actions;
			this.menu = menu;
			this.toolBar = toolBar;
		}
Example #7
0
		public GenerateActionArgs(Generator g, Control control)
		{
			this.actions = new ActionCollection(g, control);
			this.menu = new ActionItemCollection(actions);
			this.toolBar = new ActionItemCollection(actions);
		}
Example #8
0
 public ContextMenu(Generator g, ActionItemCollection actionItems)
     : this(g)
 {
     GenerateActions (actionItems);
 }
Example #9
0
File: MenuBar.cs Project: M1C/Eto
 public MenuBar(Generator g, ActionItemCollection actionItems)
     : this(g)
 {
     GenerateActions(actionItems);
 }