public static T FindDescendantByProperty <T>(this GuiSimpleContainer SimpleContainer, Func <T, bool> Property = null) where T : class { if (Property == null) { Property = new Func <T, bool>(t => true); } return(findDescendantByPropertyTemplate <T>(SimpleContainer.Children, Property)); }
public static void FindByName(this GuiSimpleContainer Container, int Row, int Column) { string id = Container.Id; //foreach(GuiComponent child in Container.Children) //{ // string tempId = child.Id.Replace(id, ""); // if(tempId) //} }
public static IEnumerable <T> FindAllByName <T>(this GuiSimpleContainer SimpleContainer, string Name) where T : class { return(findAllByNameTemplate <T>(Name, SimpleContainer.FindAllByName)); }
public static T FindById <T>(this GuiSimpleContainer SimpleContainer, string Id) where T : class { return(findByIdTemplate <T>(Id, SimpleContainer.FindById)); }
public static T FindChildByProperty <T>(this GuiSimpleContainer SimpleContainer, Func <T, bool> Property = null) where T : class { return(findChildByPropertyTemplate <T>(SimpleContainer.Children, Property)); }
public static T FindByNameEx <T>(this GuiSimpleContainer SimpleContainer, string Name, int TypeId) where T : class { return(findByNameExTemplate <T>(Name, TypeId, SimpleContainer.FindByNameEx)); }
public static IEnumerable <T> FindDescendantsByProperty <T>(this GuiSimpleContainer SimpleContainer, Func <T, bool> Property = null) where T : class { return(findDescendantsByPropertyTemplate <T>(SimpleContainer.Children, Property)); }