public AssetCategoryPath Append(CustomAssetCategoryPath customPath) { return(this.Append(customPath.CategoryPath, customPath.AlwaysShows)); }
public bool IsSketchShapesCategory(AssetCategoryPath rootPath, CustomAssetCategoryPath customPath) { return(rootPath == PresetAssetCategoryPath.ShapesRoot && customPath.CategoryPath == PresetAssetCategoryPath.SketchShapes.LastStep); }
public static IEnumerable <CustomAssetCategoryPath> Convert(IEnumerable <ToolboxCategoryAttribute> attributes) { return(Enumerable.Select <ToolboxCategoryAttribute, CustomAssetCategoryPath>(attributes, (Func <ToolboxCategoryAttribute, CustomAssetCategoryPath>)(attribute => CustomAssetCategoryPath.Convert(attribute)))); }
public static IEnumerable <CustomAssetCategoryPath> GetCustomAssetCategoryPaths(Type type) { return(CustomAssetCategoryPath.Convert(Enumerable.OfType <ToolboxCategoryAttribute>((IEnumerable)TypeUtilities.GetAttributes(type)))); }