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