Ejemplo n.º 1
0
 //TODO: Shorten syntax further, allow setting a folder, name, then varargs for the folder tree.
 private void AddMenuItem(ItemLocation location)
 {
     man.AddMenuItem(makeMenuItem(location));
 }
Ejemplo n.º 2
0
 private void AddMenuItem(MenuItemManager m2, Tuple <Action, ItemLocation> tuple)
 {
     m2.AddMenuItem(new NamedMenuItem(tuple.Item2, tuple.Item1));
 }