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