- Timestamp:
- 07/20/16 15:56:56 (8 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionGradientView.cs
r14095 r14131 162 162 } 163 163 164 private void trackbar_CheckedChanged(object sender, EventArgs e) {164 private async void trackbar_CheckedChanged(object sender, EventArgs e) { 165 165 var trackBar = sender as DensityTrackbar; 166 166 if (trackBar == null || !trackBar.Checked) return; … … 169 169 tb.Checked = false; 170 170 gradientChart.FreeVariable = variableNames[trackbars.IndexOf(trackBar)]; 171 gradientChart.RecalculateAsync();172 } 173 174 private void trackbar_LimitsChanged(object sender, EventArgs e) {171 await gradientChart.RecalculateAsync(); 172 } 173 174 private async void trackbar_LimitsChanged(object sender, EventArgs e) { 175 175 var trackBar = sender as DensityTrackbar; 176 176 if (trackBar == null || !trackBar.Checked) return; 177 177 gradientChart.FixedXAxisMin = trackBar.Limits.Lower; 178 178 gradientChart.FixedXAxisMax = trackBar.Limits.Upper; 179 gradientChart.RecalculateAsync();180 } 181 182 private void trackbar_ValueChanged(object sender, EventArgs e) {179 await gradientChart.RecalculateAsync(); 180 } 181 182 private async void trackbar_ValueChanged(object sender, EventArgs e) { 183 183 var trackBar = sender as DensityTrackbar; 184 184 if (trackBar == null) return; 185 185 sharedFixedVariables.SetVariableValue((double)trackBar.Value, variableNames[trackbars.IndexOf(trackBar)], 0); 186 gradientChart.RecalculateAsync();186 await gradientChart.RecalculateAsync(); 187 187 } 188 188 -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.4/Regression/RegressionSolutionTargetResponseGradientView.cs
r14095 r14131 127 127 Margin = Padding.Empty, 128 128 Height = 12, 129 Visible = false 129 Visible = false, 130 Top = (int)(gradientChart.Height * 0.1), 130 131 }; 131 132 densityCharts.Add(variableName, densityChart); … … 137 138 if (density.Visible) 138 139 UpdateDensityChart(density, gradient.FreeVariable); 140 }; 141 gradientChart.SizeChanged += (o, e) => { 142 var gradient = (GradientChart)o; 143 var density = densityCharts[gradient.FreeVariable]; 144 density.Top = (int)(gradient.Height * 0.1); 139 145 }; 140 146 … … 372 378 densityChart.Visible = true; 373 379 } 380 381 gradientChart.UpdateTitlePosition(); 374 382 } 375 383
Note: See TracChangeset
for help on using the changeset viewer.