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); } } }
public GenerateActionArgs(ActionCollection actions, ActionItemCollection menu, ActionItemCollection toolBar) { this.actions = actions; this.menu = menu; this.toolBar = toolBar; }
public GenerateActionArgs(Generator g, Control control) { this.actions = new ActionCollection(g, control); this.menu = new ActionItemCollection(actions); this.toolBar = new ActionItemCollection(actions); }
public ActionItemSubMenu(ActionCollection actions, string subMenuText) { this.actions = new ActionItemCollection(actions); this.subMenuText = subMenuText; }
public ContextMenu(Generator g, ActionItemCollection actionItems) : this(g) { GenerateActions (actionItems); }
public MenuBar(Generator g, ActionItemCollection actionItems) : this(g) { GenerateActions(actionItems); }