Changeset 4769 for branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/HiveExperimentManagerView.cs
- Timestamp:
- 11/11/10 10:46:12 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.ExperimentManager.Views/3.3/HiveExperimentManagerView.cs
r4760 r4769 53 53 Content_HiveExperimentsChanged(this, EventArgs.Empty); 54 54 Content_IsProgressingChanged(this, EventArgs.Empty); 55 if(Content != null) UpdateExperimentsAsync(); 55 56 } 56 57 … … 78 79 79 80 private void updateExperimentsButton_Click(object sender, EventArgs e) { 80 MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList); 81 invoker.BeginInvoke((ar) => { 82 try { 83 invoker.EndInvoke(ar); 84 } 85 catch (Exception ex) { 86 ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex); 87 } 88 }, null); 81 if(Content != null) UpdateExperimentsAsync(); 89 82 } 90 83 … … 116 109 } 117 110 } 111 112 private void UpdateExperimentsAsync() { 113 MethodInvoker invoker = new MethodInvoker(Content.UpdateExperimentList); 114 invoker.BeginInvoke((ar) => { 115 try { 116 invoker.EndInvoke(ar); 117 } 118 catch (Exception ex) { 119 ThreadPool.QueueUserWorkItem(delegate(object exception) { ErrorHandling.ShowErrorDialog(this, (Exception)exception); }, ex); 120 } 121 }, null); 122 } 118 123 } 119 124 }
Note: See TracChangeset
for help on using the changeset viewer.