public ColorGroup(string[] main, List <string> colors) { Main = new NamedBrush { Brush = new SolidColorBrush { Color = (Color)ColorConverter.ConvertFromString(main[0]) }, Name = main[1] }; Colors = new List <Brush>(colors.Count); foreach (var color in colors) { Colors.Add(new SolidColorBrush { Color = (Color)ColorConverter.ConvertFromString(color) }); } }
public ColorGroup(NamedBrush main, List <Brush> colors) { Main = main; Colors = colors; }