Esempio n. 1
0
 public void GenerateActions(ActionItemCollection actionItems)
 {
     foreach (IActionItem ai in actionItems)
     {
         ai.Generate(this);
     }
 }
Esempio n. 2
0
 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);
         }
     }
 }
Esempio n. 3
0
 public GenerateActionArgs(ActionCollection actions, ActionItemCollection menu, ActionItemCollection toolBar)
 {
     this.actions = actions;
     this.menu    = menu;
     this.toolBar = toolBar;
 }
Esempio n. 4
0
 public GenerateActionArgs(Generator g, Control control)
 {
     this.actions = new ActionCollection(g, control);
     this.menu    = new ActionItemCollection(actions);
     this.toolBar = new ActionItemCollection(actions);
 }
Esempio n. 5
0
 public ActionItemSubMenu(ActionCollection actions, string subMenuText)
 {
     this.actions = new ActionItemCollection(actions);
     this.subMenuText = subMenuText;
 }
Esempio n. 6
0
		public GenerateActionArgs(ActionCollection actions, ActionItemCollection menu, ActionItemCollection toolBar)
		{
			this.actions = actions;
			this.menu = menu;
			this.toolBar = toolBar;
		}
Esempio n. 7
0
		public GenerateActionArgs(Generator g, Control control)
		{
			this.actions = new ActionCollection(g, control);
			this.menu = new ActionItemCollection(actions);
			this.toolBar = new ActionItemCollection(actions);
		}
Esempio n. 8
0
 public ContextMenu(Generator g, ActionItemCollection actionItems)
     : this(g)
 {
     GenerateActions (actionItems);
 }
Esempio n. 9
0
File: MenuBar.cs Progetto: M1C/Eto
 public MenuBar(Generator g, ActionItemCollection actionItems)
     : this(g)
 {
     GenerateActions(actionItems);
 }