- Timestamp:
- 09/19/16 15:27:34 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Regression/3.4/SymbolicRegressionModel.cs
r14289 r14290 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 23 24 using HeuristicLab.Common; … … 34 35 public class SymbolicRegressionModel : SymbolicDataAnalysisModel, ISymbolicRegressionModel { 35 36 [Storable] 36 private readonlystring targetVariable;37 private string targetVariable; 37 38 public string TargetVariable { 38 39 get { return targetVariable; } 40 set { 41 if (string.IsNullOrEmpty(value) || targetVariable == value) return; 42 targetVariable = value; 43 OnTargetVariableChanged(this, EventArgs.Empty); 44 } 39 45 } 40 46 … … 76 82 Scale(problemData, problemData.TargetVariable); 77 83 } 84 85 #region events 86 public event EventHandler TargetVariableChanged; 87 private void OnTargetVariableChanged(object sender, EventArgs args) { 88 var changed = TargetVariableChanged; 89 if (changed != null) 90 changed(sender, args); 91 } 92 #endregion 78 93 } 79 94 }
Note: See TracChangeset
for help on using the changeset viewer.