Example #1
0
 private void tabPage2_DragDrop(object sender, DragEventArgs e)
 {
     string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
     if (scaleResampleCombox.SelectedIndex == 0)
     {
         ScaleTabHelper.ScaleFileList(files, minScaleCombox, maxScaleCombox, filterModeCombox);
     }
     if (scaleResampleCombox.SelectedIndex == 1)
     {
         ScaleTabHelper.ResampleFileList(files, minScaleCombox, maxScaleCombox, filterModeCombox, resampleReupscaleFilterBox);
     }
 }
Example #2
0
 private void DoScaleBtn_Click(object sender, EventArgs e)
 {
     if (!Program.IsPathValid(Program.currentDir))
     {
         return;
     }
     if (scaleResampleCombox.SelectedIndex == 0)
     {
         ScaleTabHelper.ScaleUsingPath(minScaleCombox, maxScaleCombox, filterModeCombox);
     }
     if (scaleResampleCombox.SelectedIndex == 1)
     {
         ScaleTabHelper.ResampleUsingPath(minScaleCombox, maxScaleCombox, filterModeCombox, resampleReupscaleFilterBox);
     }
 }