Changeset 17380 for trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
- Timestamp:
- 12/18/19 14:19:49 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/InteractiveSymbolicDataAnalysisSolutionSimplifierView.cs
r17378 r17380 168 168 private void Content_Changed(object sender, EventArgs e) { 169 169 UpdateView(); 170 SetEnabledStateOfControls(); 170 171 } 171 172 … … 186 187 } 187 188 188 pr otected virtualasync void UpdateView() {189 private async void UpdateView() { 189 190 if (Content == null || Content.Model == null || Content.ProblemData == null) return; 190 191 var tree = Content.Model.SymbolicExpressionTree; … … 317 318 var newTree = await Task.Run(() => OptimizeConstants(tree, progress)); 318 319 await Task.Delay(500); // wait for progressbar to finish animation 319 UpdateModel(newTree); // UpdateModel calls Progress.Finish (via Content_Changed)320 } catch (Exception){320 UpdateModel(newTree); 321 } finally { 321 322 progress.Finish(); 322 throw;323 323 } 324 324 }
Note: See TracChangeset
for help on using the changeset viewer.