Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/11 16:26:39 (13 years ago)
Author:
ascheibe
Message:

#1672

  • added a default job name
  • added check that a job name is set before upload
Location:
trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobListView.cs

    r7059 r7068  
    4848
    4949    protected override RefreshableJob CreateItem() {
    50       return new RefreshableJob() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged };
     50      var refreshableJob = new RefreshableJob() { IsAllowedPrivileged = HiveClient.Instance.IsAllowedPrivileged };
     51      refreshableJob.Job.Name = "New Hive Job";
     52      return refreshableJob;
    5153    }
    5254
    5355    protected override void removeButton_Click(object sender, EventArgs e) {
    54       DialogResult result = MessageBox.Show("This action will permanently delete this job (also on the hive server). Continue?", "Delete Job", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
     56      DialogResult result = MessageBox.Show("This action will permanently delete this job (also on the hive server). Continue?", "HeuristicLab Hive Job Manager", MessageBoxButtons.OKCancel, MessageBoxIcon.Question);
    5557      if (result == DialogResult.OK) {
    5658        base.removeButton_Click(sender, e);
  • trunk/sources/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r7067 r7068  
    334334    #region Control events
    335335    private void startButton_Click(object sender, EventArgs e) {
    336       HiveClient.StartJob((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Start failed.", ex), Content, new CancellationToken());
     336      if (nameTextBox.Text.Trim() == string.Empty) {
     337        MessageBox.Show("Please enter a name for the job before uploading it!", "HeuristicLab Hive Job Manager", MessageBoxButtons.OK, MessageBoxIcon.Information);
     338      } else {
     339        HiveClient.StartJob((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Start failed.", ex), Content, new CancellationToken());
     340      }
    337341    }
    338342    private void pauseButton_Click(object sender, EventArgs e) {
Note: See TracChangeset for help on using the changeset viewer.