public static T FindDescendantByProperty <T>(this GuiMenubar Menubar, Func <T, bool> Property = null)
     where T : class
 {
     if (Property == null)
     {
         Property = new Func <T, bool>(t => true);
     }
     return(findDescendantByPropertyTemplate <T>(Menubar.Children, Property));
 }
 public static IEnumerable <T> FindAllByName <T>(this GuiMenubar Menubar, string Name)
     where T : class
 {
     return(findAllByNameTemplate <T>(Name, Menubar.FindAllByName));
 }
示例#3
0
 public static T FindById <T>(this GuiMenubar Menubar, string Id)
     where T : class
 {
     return(findByIdTemplate <T>(Id, Menubar.FindById));
 }
示例#4
0
 public static T FindByName <T>(this GuiMenubar Menubar, string Name)
     where T : class
 {
     return(findByNameTemplate <T>(Name, Menubar.FindByName));
 }
示例#5
0
 public static T FindChildByProperty <T>(this GuiMenubar Menubar, Func <T, bool> Property = null)
     where T : class
 {
     return(findChildByPropertyTemplate <T>(Menubar.Children, Property));
 }
 public static T FindByNameEx <T>(this GuiMenubar Menubar, string Name, int TypeId)
     where T : class
 {
     return(findByNameExTemplate <T>(Name, TypeId, Menubar.FindByNameEx));
 }
示例#7
0
 public static IEnumerable <T> FindDescendantsByProperty <T>(this GuiMenubar Menubar, Func <T, bool> Property = null)
     where T : class
 {
     return(findDescendantsByPropertyTemplate <T>(Menubar.Children, Property));
 }