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"; }
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"; }
public void AKR_RandomPainting() { CommandStart.Start(doc => { using (var DocLock = doc.LockDocument()) { // Произвольная покраска участка, с % распределением цветов зон покраски. if (_randomPainting == null) { _randomPainting = new RandomPaintService(); } _randomPainting.Start(); } }); }