Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/08/11 16:38:28 (13 years ago)
Author:
ascheibe
Message:

#1233 more renaming for more consistency

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/HiveExperimentManagerView.cs

    r6373 r6725  
    6868        hiveExperimentListView.Content = null;
    6969      } else {
    70         hiveExperimentListView.Content = Content.HiveExperiments;
     70        hiveExperimentListView.Content = Content.Jobs;
    7171        if (Content != null)
    7272          Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex)));
     
    9393        Invoke(new EventHandler(Content_Refreshed), sender, e);
    9494      } else {
    95         hiveExperimentListView.Content = Content.HiveExperiments;
     95        hiveExperimentListView.Content = Content.Jobs;
    9696        refreshButton.Enabled = true;
    9797        hiveExperimentListView.Enabled = true;
     
    106106    protected override void OnClosing(FormClosingEventArgs e) {
    107107      base.OnClosing(e);
    108       if (Content != null && Content.HiveExperiments != null) {
    109         foreach (var exp in Content.HiveExperiments.OfType<RefreshableHiveExperiment>()) {
     108      if (Content != null && Content.Jobs != null) {
     109        foreach (var exp in Content.Jobs.OfType<RefreshableJob>()) {
    110110          if (exp.RefreshAutomatically) {
    111111            exp.RefreshAutomatically = false; // stop result polling
     
    115115    }
    116116
    117     private void HiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<RefreshableHiveExperiment> e) {
     117    private void HiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<RefreshableJob> e) {
    118118      foreach (var item in e.Items) {
    119119        HiveClient.Delete(item);
     
    122122
    123123    private void Content_HiveExperimentsChanged(object sender, EventArgs e) {
    124       Content.HiveExperiments.ItemsRemoved += new CollectionItemsChangedEventHandler<RefreshableHiveExperiment>(HiveExperiments_ItemsRemoved);
     124      Content.Jobs.ItemsRemoved += new CollectionItemsChangedEventHandler<RefreshableJob>(HiveExperiments_ItemsRemoved);
    125125    }
    126126  }
Note: See TracChangeset for help on using the changeset viewer.