Changeset 16445 for branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls
- Timestamp:
- 12/21/18 15:37:44 (6 years ago)
- Location:
- branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/FactorPartialDependencePlot.cs
r15845 r16445 167 167 // add an event such that whenever a value is changed in the shared dataset, 168 168 // this change is reflected in the internal dataset (where the value becomes a whole column) 169 if (this.sharedFixedVariables != null) 169 if (this.sharedFixedVariables != null) { 170 170 this.sharedFixedVariables.ItemChanged -= sharedFixedVariables_ItemChanged; 171 this.sharedFixedVariables.Reset -= sharedFixedVariables_Reset; 172 } 173 171 174 this.sharedFixedVariables = sharedFixedVariables; 172 175 this.sharedFixedVariables.ItemChanged += sharedFixedVariables_ItemChanged; 176 this.sharedFixedVariables.Reset += sharedFixedVariables_Reset; 173 177 174 178 RecalculateInternalDataset(); … … 218 222 if (updateOnFinish) 219 223 Update(); 220 } 221 catch (OperationCanceledException) { } 222 catch (AggregateException ae) { 224 } catch (OperationCanceledException) { } catch (AggregateException ae) { 223 225 if (!ae.InnerExceptions.Any(e => e is OperationCanceledException)) 224 226 throw; … … 495 497 } 496 498 499 private void sharedFixedVariables_Reset(object sender, EventArgs e) { 500 var newValue = sharedFixedVariables.GetStringValue(FreeVariable, 0); 501 UpdateSelectedValue(newValue); 502 503 int idx = variableValues.IndexOf(newValue); 504 UpdateAllSeriesStyles(idx); 505 } 506 497 507 private async void chart_DragDrop(object sender, DragEventArgs e) { 498 508 var data = e.Data.GetData(HeuristicLab.Common.Constants.DragDropDataFormat); -
branches/2972_PDPRowSelect/HeuristicLab.Problems.DataAnalysis.Views/3.4/Controls/PartialDependencePlot.cs
r15845 r16445 245 245 // add an event such that whenever a value is changed in the shared dataset, 246 246 // this change is reflected in the internal dataset (where the value becomes a whole column) 247 if (this.sharedFixedVariables != null) 247 if (this.sharedFixedVariables != null) { 248 248 this.sharedFixedVariables.ItemChanged -= sharedFixedVariables_ItemChanged; 249 this.sharedFixedVariables.Reset -= sharedFixedVariables_Reset; 250 } 251 249 252 this.sharedFixedVariables = sharedFixedVariables; 250 253 this.sharedFixedVariables.ItemChanged += sharedFixedVariables_ItemChanged; 254 this.sharedFixedVariables.Reset += sharedFixedVariables_Reset; 251 255 252 256 RecalculateTrainingLimits(initializeAxisRanges); … … 314 318 if (updateOnFinish) 315 319 Update(); 316 } 317 catch (OperationCanceledException) { } 318 catch (AggregateException ae) { 320 } catch (OperationCanceledException) { } catch (AggregateException ae) { 319 321 if (!ae.InnerExceptions.Any(e => e is OperationCanceledException)) 320 322 throw; … … 625 627 626 628 var variableName = variables[columnIndex]; 627 if (variableName == FreeVariable) return; 629 if (variableName == FreeVariable) { 630 return; 631 } 628 632 if (internalDataset.VariableHasType<double>(variableName)) { 629 633 var v = sharedFixedVariables.GetDoubleValue(variableName, rowIndex); … … 640 644 } 641 645 646 private void sharedFixedVariables_Reset(object sender, EventArgs e) { 647 var newValue = sharedFixedVariables.GetDoubleValue(FreeVariable, 0); 648 VerticalLineAnnotation.X = newValue; 649 UpdateCursor(); // triggers update of InternalDataset 650 } 651 642 652 private void chart_AnnotationPositionChanging(object sender, AnnotationPositionChangingEventArgs e) { 643 653 var step = (trainingMax - trainingMin) / drawingSteps;
Note: See TracChangeset
for help on using the changeset viewer.