Changeset 6725 for branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/HiveExperimentManagerView.cs
- Timestamp:
- 09/08/11 16:38:28 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive-3.4/sources/HeuristicLab.Clients.Hive.ExperimentManager/3.3/Views/HiveExperimentManagerView.cs
r6373 r6725 68 68 hiveExperimentListView.Content = null; 69 69 } else { 70 hiveExperimentListView.Content = Content. HiveExperiments;70 hiveExperimentListView.Content = Content.Jobs; 71 71 if (Content != null) 72 72 Content.RefreshAsync(new Action<Exception>((Exception ex) => ErrorHandling.ShowErrorDialog(this, "Refresh failed.", ex))); … … 93 93 Invoke(new EventHandler(Content_Refreshed), sender, e); 94 94 } else { 95 hiveExperimentListView.Content = Content. HiveExperiments;95 hiveExperimentListView.Content = Content.Jobs; 96 96 refreshButton.Enabled = true; 97 97 hiveExperimentListView.Enabled = true; … … 106 106 protected override void OnClosing(FormClosingEventArgs e) { 107 107 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>()) { 110 110 if (exp.RefreshAutomatically) { 111 111 exp.RefreshAutomatically = false; // stop result polling … … 115 115 } 116 116 117 private void HiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<Refreshable HiveExperiment> e) {117 private void HiveExperiments_ItemsRemoved(object sender, CollectionItemsChangedEventArgs<RefreshableJob> e) { 118 118 foreach (var item in e.Items) { 119 119 HiveClient.Delete(item); … … 122 122 123 123 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); 125 125 } 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.