public FormRandomPainting(Dictionary<string, RandomPaint> propers,
                RandomPaintService randomPaintingService, Dictionary<string, RandomPaint> trackPropers)
        {
            InitializeComponent();

            _randomPaintingService = randomPaintingService;
            _location = new Point(12, 64);
            _allPropers = propers;
            _groupBoxs = new Dictionary<string, GroupBox>();
            // Ключ у всех - имя слоя.
            // Восстановление набора распределяемых цветов
            restoreTracks(trackPropers);
            comboBoxColor.DataSource = _allPropers.Values.ToList();
            comboBoxColor.DisplayMember = "LayerName";
        }
Exemplo n.º 2
0
        public FormRandomPainting(Dictionary <string, RandomPaint> propers,
                                  RandomPaintService randomPaintingService, Dictionary <string, RandomPaint> trackPropers)
        {
            InitializeComponent();

            _randomPaintingService = randomPaintingService;
            _location   = new Point(12, 64);
            _allPropers = propers;
            _groupBoxs  = new Dictionary <string, GroupBox>();
            // Ключ у всех - имя слоя.
            // Восстановление набора распределяемых цветов
            restoreTracks(trackPropers);
            comboBoxColor.DataSource    = _allPropers.Values.ToList();
            comboBoxColor.DisplayMember = "LayerName";
        }
Exemplo n.º 3
0
 public void AKR_RandomPainting()
 {
     CommandStart.Start(doc =>
     {
         using (var DocLock = doc.LockDocument())
         {
             // Произвольная покраска участка, с % распределением цветов зон покраски.
             if (_randomPainting == null)
             {
                 _randomPainting = new RandomPaintService();
             }
             _randomPainting.Start();
         }
     });
 }