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