Esempio n. 1
0
 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)
         });
     }
 }
Esempio n. 2
0
 public ColorGroup(NamedBrush main, List <Brush> colors)
 {
     Main   = main;
     Colors = colors;
 }