Beispiel #1
0
 public void Pair(MenuElementFactory <T> factory)
 {
     foreach (MemberInfo mi in TMembers)
     {
         if (factory.ElementLookup.TryGetValue(mi.Name, out IValueElement e))
         {
             Pair(e, mi);
         }
     }
 }
Beispiel #2
0
 public MenuPreset(MenuPage page, string prefix, Dictionary <string, T> dict, T obj,
                   Func <T, string> caption, MenuElementFactory <T> factory)
     : this(page, prefix, dict, obj, caption)
 {
     Pair(factory);
 }