- Timestamp:
- 07/04/19 14:45:47 (5 years ago)
- Location:
- stable
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
stable
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views
- Property svn:mergeinfo changed
/trunk/HeuristicLab.Problems.DataAnalysis.Views merged: 16356,16389,16430 /trunk/sources/HeuristicLab.Problems.DataAnalysis.Views merged: 15581,15583,15589
- Property svn:mergeinfo changed
-
stable/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionVariableImpactsView.cs
r16438 r17062 111 111 112 112 private async void UpdateVariableImpact() { 113 IProgress progress;114 115 113 //Check if the selection is valid 116 114 if (Content == null) { return; } … … 120 118 121 119 //Prepare arguments 122 var mainForm = (MainForm.WindowsForms.MainForm)MainFormManager.MainForm;123 120 var replMethod = (RegressionSolutionVariableImpactsCalculator.ReplacementMethodEnum)replacementComboBox.Items[replacementComboBox.SelectedIndex]; 124 121 var factorReplMethod = (RegressionSolutionVariableImpactsCalculator.FactorReplacementMethodEnum)factorVarReplComboBox.Items[factorVarReplComboBox.SelectedIndex]; … … 126 123 127 124 variableImpactsArrayView.Caption = Content.Name + " Variable Impacts"; 128 progress = mainForm.AddOperationProgressToView(this, "Calculating variable impacts for " + Content.Name); 129 progress.ProgressValue = 0; 130 125 var progress = Progress.Show(this, "Calculating variable impacts for " + Content.Name); 131 126 cancellationToken = new CancellationTokenSource(); 132 127 … … 148 143 } 149 144 finally { 150 ((MainForm.WindowsForms.MainForm)MainFormManager.MainForm).RemoveOperationProgressFromView(this);145 Progress.Hide(this); 151 146 } 152 147 } … … 175 170 if (cancellationToken.Token.IsCancellationRequested) { return null; } 176 171 progress.ProgressValue = (double)++i / count; 177 progress. Status= string.Format("Calculating impact for variable {0} ({1} of {2})", variableName, i, count);172 progress.Message = string.Format("Calculating impact for variable {0} ({1} of {2})", variableName, i, count); 178 173 179 174 double impact = 0;
Note: See TracChangeset
for help on using the changeset viewer.