using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.EmbroideryUI { public static class EmbroideryMaterialsHelper { public static List GetAvailableEmbroideryMaterials() { List materials = new List(); foreach (var type in typeof(IEmbroideryMaterial).Assembly.GetTypes().Where(x => typeof(IEmbroideryMaterial).IsAssignableFrom(x) && !x.IsAbstract)) { materials.Add(Activator.CreateInstance(type) as IEmbroideryMaterial); } return materials; } } }