Changeset 5717 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionView.cs
- Timestamp:
- 03/16/11 16:34:31 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.DataAnalysis.Views/3.4/Classification/DiscriminantFunctionClassificationSolutionView.cs
r5664 r5717 87 87 Content.ModelChanged += new EventHandler(Content_ModelChanged); 88 88 Content.ProblemDataChanged += new EventHandler(Content_ProblemDataChanged); 89 Content.ThresholdsChanged += new EventHandler(Content_ThresholdsChanged);90 89 } 91 90 protected override void DeregisterContentEvents() { … … 93 92 Content.ModelChanged -= new EventHandler(Content_ModelChanged); 94 93 Content.ProblemDataChanged -= new EventHandler(Content_ProblemDataChanged); 95 Content.ThresholdsChanged -= new EventHandler(Content_ThresholdsChanged);96 94 } 97 95 … … 168 166 chart.Annotations.Clear(); 169 167 int classIndex = 1; 170 foreach (double threshold in Content. Thresholds) {168 foreach (double threshold in Content.Model.Thresholds) { 171 169 if (!double.IsInfinity(threshold)) { 172 170 HorizontalLineAnnotation annotation = new HorizontalLineAnnotation(); … … 235 233 private void chart_AnnotationPositionChanging(object sender, AnnotationPositionChangingEventArgs e) { 236 234 int classIndex = (int)e.Annotation.Tag; 237 double[] thresholds = Content. Thresholds.ToArray();235 double[] thresholds = Content.Model.Thresholds.ToArray(); 238 236 double max = thresholds[classIndex + 1]; 239 237 double min = thresholds[classIndex - 1]; … … 246 244 247 245 thresholds[classIndex] = e.NewLocationY; 248 Content. Thresholds = thresholds;246 Content.Model.Thresholds = thresholds; 249 247 } 250 248
Note: See TracChangeset
for help on using the changeset viewer.