Ejemplo n.º 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(":");
 }
Ejemplo n.º 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;
 }
Ejemplo n.º 3
0
 public override void Load(BatchSettings settings)
 {
     LoadWaterMark(settings.AdditionalImage);
     loaded = true;
 }
Ejemplo n.º 4
0
 public override void Load(BatchSettings settings)
 {
     MaxWidth = settings.Width;
     MaxHeight = settings.Height;
     loaded = true;
 }
Ejemplo n.º 5
0
 public abstract void Load(BatchSettings settings);
Ejemplo n.º 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;
        }