- Timestamp:
- 07/04/19 14:45:47 (5 years ago)
- Location:
- stable
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Analysis.Statistics.Views/3.3/ChartAnalysisView.cs
r15584 r17062 173 173 174 174 private void addLineToChart_Click(object sender, EventArgs e) { 175 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Adding fitted lines to charts...");175 Progress.Show(this, "Adding fitted lines to charts...", ProgressMode.Indeterminate); 176 176 177 177 string resultName = (string)dataTableComboBox.SelectedItem; … … 181 181 182 182 task.ContinueWith((t) => { 183 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);183 Progress.Hide(this); 184 184 ErrorHandling.ShowErrorDialog("An error occured while adding lines to charts. ", t.Exception); 185 185 }, TaskContinuationOptions.OnlyOnFaulted); 186 186 187 187 task.ContinueWith((t) => { 188 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);188 Progress.Hide(this); 189 189 }, TaskContinuationOptions.OnlyOnRanToCompletion); 190 190 } … … 273 273 var task = Task.Factory.StartNew(() => { 274 274 sem.Wait(); 275 progress = MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().AddOperationProgressToView(this, "Calculating values...");275 progress = Progress.Show(this, "Calculating values..."); 276 276 RebuildDataTable(resultName, rowName); 277 277 }); 278 278 279 279 task.ContinueWith((t) => { 280 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);280 Progress.Hide(this); 281 281 ErrorHandling.ShowErrorDialog("An error occured while calculating values. ", t.Exception); 282 282 sem.Release(); … … 284 284 285 285 task.ContinueWith((t) => { 286 MainFormManager.GetMainForm<MainForm.WindowsForms.MainForm>().RemoveOperationProgressFromView(this);286 Progress.Hide(this); 287 287 sem.Release(); 288 288 }, TaskContinuationOptions.OnlyOnRanToCompletion);
Note: See TracChangeset
for help on using the changeset viewer.