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