Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/06/17 11:08:20 (5 years ago)
Author:
bburlacu
Message:

#2829: Add option to select the save path for the downloaded jobs. Automatically remove duplicate datasets when the job is saved in a single file. Add button to manually list hive jobs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/HeuristicLab.HiveDrain/HeuristicLab.HiveDrain/HiveDrainMainWindow.cs

    r15346 r15494  
    3232      downloadButton.Enabled = false;
    3333
    34       JobDownloader jobDownloader = new JobDownloader(Environment.CurrentDirectory, pattern, Log, oneFileCheckBox.Checked);
     34      var directory = outputDirectoryTextBox.Text;
     35
     36      if (string.IsNullOrEmpty(directory))
     37        directory = Environment.CurrentDirectory;
     38
     39      JobDownloader jobDownloader = new JobDownloader(directory, pattern, Log, oneFileCheckBox.Checked);
    3540      task = new System.Threading.Tasks.Task(jobDownloader.Start);
    3641      task.ContinueWith(x => { Log.LogMessage("All tasks written, quitting."); EnableButton(); }, TaskContinuationOptions.OnlyOnRanToCompletion);
     
    5257      }
    5358    }
     59
     60    private void browseOutputPathButton_Click(object sender, EventArgs e) {
     61      var path = string.Empty;
     62
     63      var dialog = new FolderBrowserDialog {
     64        RootFolder = Environment.SpecialFolder.MyComputer
     65      };
     66
     67      if (dialog.ShowDialog() == DialogResult.OK) {
     68        path = dialog.SelectedPath;
     69      }
     70
     71      if (!string.IsNullOrEmpty(path))
     72        outputDirectoryTextBox.Text = path;
     73    }
     74
     75    private void listJobsButton_Click(object sender, EventArgs e) {
     76      ListHiveJobs();
     77    }
    5478  }
    5579}
Note: See TracChangeset for help on using the changeset viewer.