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