public GradientMaker(GradientMakerSettings options)
 {
     InitializeComponent();
     this.Options = options;
     if (0 == this.Options.BrushDataList.Count)
     {
         this.Options.BrushDataList.Add(new BrushData());
     }
     foreach (BrushData bd in options.BrushDataList)
     {
         lbBrushData.Items.Add(bd);
     }
     if (options.BrushDataSelected < lbBrushData.Items.Count)
     {
         lbBrushData.SelectedIndex = options.BrushDataSelected;
         UpdateGUI(options.GetBrushDataActive());
         UpdatePreview(options.GetBrushDataActive());
     }
 }
 public GradientMaker(GradientMakerSettings options)
 {
     InitializeComponent();
     this.Options = options;
     if (0 == this.Options.BrushDataList.Count)
     {
         this.Options.BrushDataList.Add(new BrushData());
     }
     foreach (BrushData bd in options.BrushDataList)
     {
         lbBrushData.Items.Add(bd);
     }
     if (options.BrushDataSelected < lbBrushData.Items.Count)
     {
         lbBrushData.SelectedIndex = options.BrushDataSelected;
         UpdateGUI(options.GetBrushDataActive());
         UpdatePreview(options.GetBrushDataActive());
     }
 }