public BatchManager(BatchSettings BatchSettings) { processed = 0; isRunning = false; files = new ConcurrentStack<string>(); batchSettings = BatchSettings; ParameterizedThreadStart threadStart = new ParameterizedThreadStart(operationExecute); operationThread = new Thread(threadStart); regEx = new Regex(":"); }
public ControlCenter(BatchSettings settings) { batchManagers = new List<BatchManager>(); batchSettings = settings; scanners = new List<Scanner>(); BatchManager manager = new BatchManager(batchSettings); batchManagers.Add(manager); manager.AtMaxCapacity += manager_AtMaxCapacity; manager.FileAdded += manager_FileAdded; manager.Done += manager_Done; manager.ProcessedFile += manager_ProcessedFile; }
public override void Load(BatchSettings settings) { LoadWaterMark(settings.AdditionalImage); loaded = true; }
public override void Load(BatchSettings settings) { MaxWidth = settings.Width; MaxHeight = settings.Height; loaded = true; }
public abstract void Load(BatchSettings settings);
private void MainForm_Load(object sender, EventArgs e) { WatermarkOperation watermarkOp = new WatermarkOperation(); operationCheckbox.Items.Add(watermarkOp); ShrinkOperation resizeOperation = new ShrinkOperation(); operationCheckbox.Items.Add(resizeOperation); batchSettings = new BatchSettings(); widthNumeric.Value = batchSettings.Width; heightNumeric.Value = batchSettings.Height; aspectRatioCheckBox.Checked = batchSettings.MaintainAspectRatio; outputFolderTextbox.Text = batchSettings.OutputDirectory; fileLabelTextbox.Text = batchSettings.FileLabel; additionalImageTextbox.Text = batchSettings.AdditionalImage; }