Ignore:
Timestamp:
01/24/13 17:20:07 (9 years ago)
Author:
ascheibe
Message:

#2005 implemented unloading of jobs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/UnloadJobs/HeuristicLab.Clients.Hive.JobManager/3.3/Views/RefreshableHiveJobView.cs

    r9173 r9188  
    187187        this.refreshButton.Enabled = Content.IsDownloadable && alreadyUploaded && !Content.IsProgressing;
    188188        this.Locked = !Content.IsControllable || Content.ExecutionState == ExecutionState.Started || Content.IsProgressing;
     189
     190        this.UnloadButton.Enabled = Content.HiveTasks != null && Content.HiveTasks.Count > 0 && alreadyUploaded && !Content.IsProgressing;
    189191      }
    190192      SetEnabledStateOfExecutableButtons();
     
    569571      }
    570572    }
     573
     574    private void UnloadButton_Click(object sender, EventArgs e) {
     575      Content.Unload();
     576      runCollectionViewHost.Content = null;
     577      stateLogViewHost.Content = null;
     578      hiveExperimentPermissionListView.Content = null;
     579      jobsTreeView.Content = null;
     580
     581      SetEnabledStateOfControls();
     582    }
    571583  }
    572584}
Note: See TracChangeset for help on using the changeset viewer.