예제 #1
0
 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(":");
 }
예제 #2
0
 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;
 }
예제 #4
0
 public override void Load(BatchSettings settings)
 {
     MaxWidth = settings.Width;
     MaxHeight = settings.Height;
     loaded = true;
 }
예제 #5
0
 public abstract void Load(BatchSettings settings);
예제 #6
0
        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;
        }