- Timestamp:
- 06/25/12 14:31:17 (12 years ago)
- Location:
- trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableConditionView.Designer.cs
r8053 r8103 114 114 // 115 115 this.mutationGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 116 | System.Windows.Forms.AnchorStyles.Right)));116 | System.Windows.Forms.AnchorStyles.Right))); 117 117 this.mutationGroupBox.Controls.Add(this.slopeChangeSigmaLabel); 118 118 this.mutationGroupBox.Controls.Add(this.slopeChangeSigmaTextBox); … … 139 139 this.slopeChangeSigmaLabel.Text = "Slope change (sigma):"; 140 140 this.toolTip.SetToolTip(this.slopeChangeSigmaLabel, "The sigma parameter for the normal distribution to use to sample the change in sl" + 141 "ope.");141 "ope."); 142 142 // 143 143 // slopeChangeSigmaTextBox 144 144 // 145 145 this.slopeChangeSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 146 | System.Windows.Forms.AnchorStyles.Right)));146 | System.Windows.Forms.AnchorStyles.Right))); 147 147 this.slopeChangeSigmaTextBox.Location = new System.Drawing.Point(149, 99); 148 148 this.slopeChangeSigmaTextBox.Name = "slopeChangeSigmaTextBox"; … … 150 150 this.slopeChangeSigmaTextBox.TabIndex = 7; 151 151 this.toolTip.SetToolTip(this.slopeChangeSigmaTextBox, "The sigma parameter for the normal distribution to use to sample the change in sl" + 152 "ope.");153 this.slopeChangeSigmaTextBox.TextChanged += new System.EventHandler(this. slopeChangeSigmaTextBox_TextChanged);152 "ope."); 153 this.slopeChangeSigmaTextBox.TextChanged += new System.EventHandler(this.SlopeChangeSigmaTextBox_TextChanged); 154 154 // 155 155 // slopeChangeMuLabel … … 162 162 this.slopeChangeMuLabel.Text = "Slope change (mu):"; 163 163 this.toolTip.SetToolTip(this.slopeChangeMuLabel, "The nu (mean) parameter for the normal distribution to sample the change in slope" + 164 ".");164 "."); 165 165 // 166 166 // slopeChangeMuTextBox 167 167 // 168 168 this.slopeChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 169 | System.Windows.Forms.AnchorStyles.Right)));169 | System.Windows.Forms.AnchorStyles.Right))); 170 170 this.slopeChangeMuTextBox.Location = new System.Drawing.Point(149, 73); 171 171 this.slopeChangeMuTextBox.Name = "slopeChangeMuTextBox"; … … 173 173 this.slopeChangeMuTextBox.TabIndex = 5; 174 174 this.toolTip.SetToolTip(this.slopeChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the change in slope" + 175 ".");176 this.slopeChangeMuTextBox.TextChanged += new System.EventHandler(this. slopeChangeMuTextBox_TextChanged);175 "."); 176 this.slopeChangeMuTextBox.TextChanged += new System.EventHandler(this.SlopeChangeMuTextBox_TextChanged); 177 177 // 178 178 // thresholdChangeSigmaLabel … … 185 185 this.thresholdChangeSigmaLabel.Text = "Threshold change (sigma):"; 186 186 this.toolTip.SetToolTip(this.thresholdChangeSigmaLabel, "The sigma parameter for the normal distribution to use to sample the change in th" + 187 "reshold.");187 "reshold."); 188 188 // 189 189 // thresholdChangeSigmaTextBox 190 190 // 191 191 this.thresholdChangeSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 192 | System.Windows.Forms.AnchorStyles.Right)));192 | System.Windows.Forms.AnchorStyles.Right))); 193 193 this.thresholdChangeSigmaTextBox.Location = new System.Drawing.Point(149, 41); 194 194 this.thresholdChangeSigmaTextBox.Name = "thresholdChangeSigmaTextBox"; … … 196 196 this.thresholdChangeSigmaTextBox.TabIndex = 3; 197 197 this.toolTip.SetToolTip(this.thresholdChangeSigmaTextBox, "The sigma parameter for the normal distribution to use to sample the change in th" + 198 "reshold.");199 this.thresholdChangeSigmaTextBox.TextChanged += new System.EventHandler(this. thresholdChangeSigmaTextBox_TextChanged);198 "reshold."); 199 this.thresholdChangeSigmaTextBox.TextChanged += new System.EventHandler(this.ThresholdChangeSigmaTextBox_TextChanged); 200 200 // 201 201 // ThresholdChangeMuLabel … … 208 208 this.ThresholdChangeMuLabel.Text = "Threshold change (mu):"; 209 209 this.toolTip.SetToolTip(this.ThresholdChangeMuLabel, "The nu (mean) parameter for the normal distribution to sample the change in thres" + 210 "hold.");210 "hold."); 211 211 // 212 212 // thresholdChangeMuTextBox 213 213 // 214 214 this.thresholdChangeMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 215 | System.Windows.Forms.AnchorStyles.Right)));215 | System.Windows.Forms.AnchorStyles.Right))); 216 216 this.thresholdChangeMuTextBox.Location = new System.Drawing.Point(149, 15); 217 217 this.thresholdChangeMuTextBox.Name = "thresholdChangeMuTextBox"; … … 219 219 this.thresholdChangeMuTextBox.TabIndex = 1; 220 220 this.toolTip.SetToolTip(this.thresholdChangeMuTextBox, "The mu (mean) parameter for the normal distribution to sample the change in thres" + 221 "hold.");222 this.thresholdChangeMuTextBox.TextChanged += new System.EventHandler(this. thresholdChangeMuTextBox_TextChanged);221 "hold."); 222 this.thresholdChangeMuTextBox.TextChanged += new System.EventHandler(this.ThresholdChangeMuTextBox_TextChanged); 223 223 // 224 224 // tabControl 225 225 // 226 226 this.tabControl.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 227 | System.Windows.Forms.AnchorStyles.Left)228 | System.Windows.Forms.AnchorStyles.Right)));227 | System.Windows.Forms.AnchorStyles.Left) 228 | System.Windows.Forms.AnchorStyles.Right))); 229 229 this.tabControl.Controls.Add(this.variableNamesTabPage); 230 230 this.tabControl.Controls.Add(this.parametersTabPage); … … 260 260 // 261 261 this.initializationGroupBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 262 | System.Windows.Forms.AnchorStyles.Right)));262 | System.Windows.Forms.AnchorStyles.Right))); 263 263 this.initializationGroupBox.Controls.Add(this.slopeInitializationSigmaLabel); 264 264 this.initializationGroupBox.Controls.Add(this.slopeInitializationSigmaTextBox); … … 289 289 // 290 290 this.slopeInitializationSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 291 | System.Windows.Forms.AnchorStyles.Right)));291 | System.Windows.Forms.AnchorStyles.Right))); 292 292 this.slopeInitializationSigmaTextBox.Location = new System.Drawing.Point(114, 102); 293 293 this.slopeInitializationSigmaTextBox.Name = "slopeInitializationSigmaTextBox"; … … 295 295 this.slopeInitializationSigmaTextBox.TabIndex = 7; 296 296 this.toolTip.SetToolTip(this.slopeInitializationSigmaTextBox, "The sigma parameter for the normal distribution from which to sample the initial " + 297 "slopes."); 297 "slopes."); 298 this.slopeInitializationSigmaTextBox.TextChanged += new System.EventHandler(this.SlopeInitializationSigmaTextBox_TextChanged); 298 299 // 299 300 // slopeInitializationMuLabel … … 310 311 // 311 312 this.slopeInitializationMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 312 | System.Windows.Forms.AnchorStyles.Right)));313 | System.Windows.Forms.AnchorStyles.Right))); 313 314 this.slopeInitializationMuTextBox.Location = new System.Drawing.Point(114, 76); 314 315 this.slopeInitializationMuTextBox.Name = "slopeInitializationMuTextBox"; … … 316 317 this.slopeInitializationMuTextBox.TabIndex = 5; 317 318 this.toolTip.SetToolTip(this.slopeInitializationMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" + 318 "al slopes."); 319 "al slopes."); 320 this.slopeInitializationMuTextBox.TextChanged += new System.EventHandler(this.SlopeInitializationMuTextBox_TextChanged); 319 321 // 320 322 // thresholdInitializationSigmaLabel … … 331 333 // 332 334 this.thresholdInitializationSigmaTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 333 | System.Windows.Forms.AnchorStyles.Right)));335 | System.Windows.Forms.AnchorStyles.Right))); 334 336 this.thresholdInitializationSigmaTextBox.Location = new System.Drawing.Point(114, 41); 335 337 this.thresholdInitializationSigmaTextBox.Name = "thresholdInitializationSigmaTextBox"; … … 337 339 this.thresholdInitializationSigmaTextBox.TabIndex = 3; 338 340 this.toolTip.SetToolTip(this.thresholdInitializationSigmaTextBox, "The sigma parameter for the normal distribution from which to sample the initial " + 339 "thresholds."); 341 "thresholds."); 342 this.thresholdInitializationSigmaTextBox.TextChanged += new System.EventHandler(this.ThresholdInitializationSigmaTextBox_TextChanged); 340 343 // 341 344 // thresholdInitializationMuLabel … … 352 355 // 353 356 this.thresholdInitializationMuTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 354 | System.Windows.Forms.AnchorStyles.Right)));357 | System.Windows.Forms.AnchorStyles.Right))); 355 358 this.thresholdInitializationMuTextBox.Location = new System.Drawing.Point(114, 15); 356 359 this.thresholdInitializationMuTextBox.Name = "thresholdInitializationMuTextBox"; … … 358 361 this.thresholdInitializationMuTextBox.TabIndex = 1; 359 362 this.toolTip.SetToolTip(this.thresholdInitializationMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" + 360 "al thresholds."); 363 "al thresholds."); 364 this.thresholdInitializationMuTextBox.TextChanged += new System.EventHandler(this.ThresholdInitializationMuTextBox_TextChanged); 361 365 // 362 366 // VariableConditionView 363 367 // 364 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);365 368 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit; 366 369 this.Controls.Add(this.tabControl); -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableConditionView.cs
r8099 r8103 53 53 54 54 private void RegisterVariableNamesViewContentEvents() { 55 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);57 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);58 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);55 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 56 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 57 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 58 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 59 59 foreach (var variable in variableNamesView.Content) { 60 variable.ValueChanged += new EventHandler( variable_ValueChanged);60 variable.ValueChanged += new EventHandler(Variable_ValueChanged); 61 61 } 62 62 } 63 63 64 64 private void DeregisterVariableNamesViewContentEvents() { 65 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);66 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);67 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);68 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);65 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 66 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 67 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 68 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 69 69 foreach (var variable in variableNamesView.Content) { 70 variable.ValueChanged -= new EventHandler( variable_ValueChanged);70 variable.ValueChanged -= new EventHandler(Variable_ValueChanged); 71 71 } 72 72 } … … 148 148 149 149 #region control events 150 private void variableNames_Changed(object sender, CollectionItemsChangedEventArgs<StringValue> args) { 151 if (args.Items != null) 152 foreach (var newVar in args.Items) 153 newVar.ValueChanged += new EventHandler(variable_ValueChanged); 154 if (args.OldItems != null) 155 foreach (var oldVar in args.OldItems) 156 oldVar.ValueChanged -= new EventHandler(variable_ValueChanged); 150 private void VariableNames_Changed(object sender, CollectionItemsChangedEventArgs<StringValue> e) { 151 foreach (var newVar in e.Items) 152 newVar.ValueChanged += new EventHandler(Variable_ValueChanged); 153 foreach (var oldVar in e.OldItems) 154 oldVar.ValueChanged -= new EventHandler(Variable_ValueChanged); 157 155 UpdateContent(); 158 156 } 159 157 160 private void variable_ValueChanged(object sender, EventArgs e) {158 private void Variable_ValueChanged(object sender, EventArgs e) { 161 159 UpdateContent(); 162 160 } … … 170 168 } 171 169 172 private void thresholdMuTextBox_TextChanged(object sender, EventArgs e) {170 private void ThresholdInitializationMuTextBox_TextChanged(object sender, EventArgs e) { 173 171 double value; 174 172 if (double.TryParse(thresholdInitializationMuTextBox.Text, out value)) { … … 177 175 } else errorProvider.SetError(thresholdInitializationMuTextBox, "Invalid value"); 178 176 } 179 private void thresholdInitializationSigmaTextBox_TextChanged(object sender, EventArgs e) {177 private void ThresholdInitializationSigmaTextBox_TextChanged(object sender, EventArgs e) { 180 178 double value; 181 179 if (double.TryParse(thresholdInitializationSigmaTextBox.Text, out value)) { … … 184 182 } else errorProvider.SetError(thresholdInitializationSigmaTextBox, "Invalid value"); 185 183 } 186 private void slopeInitializationMuTextBox_TextChanged(object sender, EventArgs e) {184 private void SlopeInitializationMuTextBox_TextChanged(object sender, EventArgs e) { 187 185 double value; 188 186 if (double.TryParse(slopeInitializationMuTextBox.Text, out value)) { … … 191 189 } else errorProvider.SetError(slopeInitializationMuTextBox, "Invalid value"); 192 190 } 193 private void slopeInitializationSigmaTextBox_TextChanged(object sender, EventArgs e) {191 private void SlopeInitializationSigmaTextBox_TextChanged(object sender, EventArgs e) { 194 192 double value; 195 193 if (double.TryParse(slopeInitializationSigmaTextBox.Text, out value)) { … … 199 197 } 200 198 201 private void thresholdChangeMuTextBox_TextChanged(object sender, EventArgs e) {199 private void ThresholdChangeMuTextBox_TextChanged(object sender, EventArgs e) { 202 200 double value; 203 201 if (double.TryParse(thresholdChangeMuTextBox.Text, out value)) { … … 207 205 } 208 206 209 private void thresholdChangeSigmaTextBox_TextChanged(object sender, EventArgs e) {207 private void ThresholdChangeSigmaTextBox_TextChanged(object sender, EventArgs e) { 210 208 double value; 211 209 if (double.TryParse(thresholdChangeSigmaTextBox.Text, out value)) { … … 214 212 } else errorProvider.SetError(thresholdChangeSigmaTextBox, "Invalid value"); 215 213 } 216 private void slopeChangeMuTextBox_TextChanged(object sender, EventArgs e) {214 private void SlopeChangeMuTextBox_TextChanged(object sender, EventArgs e) { 217 215 double value; 218 216 if (double.TryParse(slopeChangeMuTextBox.Text, out value)) { … … 222 220 } 223 221 224 private void slopeChangeSigmaTextBox_TextChanged(object sender, EventArgs e) {222 private void SlopeChangeSigmaTextBox_TextChanged(object sender, EventArgs e) { 225 223 double value; 226 224 if (double.TryParse(slopeChangeSigmaTextBox.Text, out value)) { -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.Designer.cs
r7967 r8103 122 122 this.toolTip.SetToolTip(this.weightInitializationMuTextBox, "The mu (mean) parameter of the normal distribution from which to sample the initi" + 123 123 "al weights."); 124 this.weightInitializationMuTextBox.TextChanged += new System.EventHandler(this. weightMuTextBox_TextChanged);124 this.weightInitializationMuTextBox.TextChanged += new System.EventHandler(this.WeightMuTextBox_TextChanged); 125 125 // 126 126 // initializationGroupBox … … 159 159 this.toolTip.SetToolTip(this.weightInitializationSigmaTextBox, "The sigma parameter for the normal distribution from which to sample the initial " + 160 160 "weights."); 161 this.weightInitializationSigmaTextBox.TextChanged += new System.EventHandler(this. weightSigmaTextBox_TextChanged);161 this.weightInitializationSigmaTextBox.TextChanged += new System.EventHandler(this.WeightSigmaTextBox_TextChanged); 162 162 // 163 163 // mutationGroupBox … … 197 197 this.toolTip.SetToolTip(this.multiplicativeWeightChangeSigmaTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample a multiplica" + 198 198 "tive change in weight."); 199 this.multiplicativeWeightChangeSigmaTextBox.TextChanged += new System.EventHandler(this. multiplicativeWeightChangeSigmaTextBox_TextChanged);199 this.multiplicativeWeightChangeSigmaTextBox.TextChanged += new System.EventHandler(this.MultiplicativeWeightChangeSigmaTextBox_TextChanged); 200 200 // 201 201 // additiveWeightChangeLabel … … 220 220 this.toolTip.SetToolTip(this.additiveWeightChangeSigmaTextBox, "The sigma (std.dev.) parameter for the normal distribution to sample an additive " + 221 221 "change in weight."); 222 this.additiveWeightChangeSigmaTextBox.TextChanged += new System.EventHandler(this. additiveWeightChangeSigmaTextBox_TextChanged);222 this.additiveWeightChangeSigmaTextBox.TextChanged += new System.EventHandler(this.AdditiveWeightChangeSigmaTextBox_TextChanged); 223 223 // 224 224 // tabControl -
trunk/sources/HeuristicLab.Problems.DataAnalysis.Symbolic.Views/3.4/Symbols/VariableView.cs
r7869 r8103 54 54 55 55 private void RegisterVariableNamesViewContentEvents() { 56 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);57 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);58 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);59 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);56 variableNamesView.Content.ItemsAdded += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 57 variableNamesView.Content.ItemsRemoved += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 58 variableNamesView.Content.CheckedItemsChanged += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 59 variableNamesView.Content.CollectionReset += new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 60 60 foreach (var variable in variableNamesView.Content) { 61 variable.ValueChanged += new EventHandler( variable_ValueChanged);61 variable.ValueChanged += new EventHandler(Variable_ValueChanged); 62 62 } 63 63 } … … 65 65 66 66 private void DeregisterVariableNamesViewContentEvents() { 67 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);68 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);69 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);70 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>( variableNames_Changed);67 variableNamesView.Content.ItemsAdded -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 68 variableNamesView.Content.ItemsRemoved -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 69 variableNamesView.Content.CheckedItemsChanged -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 70 variableNamesView.Content.CollectionReset -= new CollectionItemsChangedEventHandler<StringValue>(VariableNames_Changed); 71 71 foreach (var variable in variableNamesView.Content) { 72 variable.ValueChanged -= new EventHandler( variable_ValueChanged);72 variable.ValueChanged -= new EventHandler(Variable_ValueChanged); 73 73 } 74 74 } … … 109 109 110 110 #region control event handlers 111 private void variableNames_Changed(object sender, CollectionItemsChangedEventArgs<StringValue> args) { 112 if (args.Items != null) 113 foreach (var newVar in args.Items) 114 newVar.ValueChanged += new EventHandler(variable_ValueChanged); 115 if (args.OldItems != null) 116 foreach (var oldVar in args.OldItems) 117 oldVar.ValueChanged -= new EventHandler(variable_ValueChanged); 111 private void VariableNames_Changed(object sender, CollectionItemsChangedEventArgs<StringValue> e) { 112 foreach (var newVar in e.Items) 113 newVar.ValueChanged += new EventHandler(Variable_ValueChanged); 114 foreach (var oldVar in e.OldItems) 115 oldVar.ValueChanged -= new EventHandler(Variable_ValueChanged); 118 116 UpdateContent(); 119 117 } 120 118 121 private void variable_ValueChanged(object sender, EventArgs e) {119 private void Variable_ValueChanged(object sender, EventArgs e) { 122 120 UpdateContent(); 123 121 } … … 131 129 } 132 130 133 private void weightMuTextBox_TextChanged(object sender, EventArgs e) {131 private void WeightMuTextBox_TextChanged(object sender, EventArgs e) { 134 132 double nu; 135 133 if (double.TryParse(weightInitializationMuTextBox.Text, out nu)) { … … 140 138 } 141 139 } 142 private void weightSigmaTextBox_TextChanged(object sender, EventArgs e) {140 private void WeightSigmaTextBox_TextChanged(object sender, EventArgs e) { 143 141 double sigma; 144 142 if (double.TryParse(weightInitializationSigmaTextBox.Text, out sigma) && sigma >= 0.0) { … … 150 148 } 151 149 152 private void additiveWeightChangeSigmaTextBox_TextChanged(object sender, EventArgs e) {150 private void AdditiveWeightChangeSigmaTextBox_TextChanged(object sender, EventArgs e) { 153 151 double sigma; 154 152 if (double.TryParse(additiveWeightChangeSigmaTextBox.Text, out sigma) && sigma >= 0.0) { … … 159 157 } 160 158 } 161 private void multiplicativeWeightChangeSigmaTextBox_TextChanged(object sender, EventArgs e) {159 private void MultiplicativeWeightChangeSigmaTextBox_TextChanged(object sender, EventArgs e) { 162 160 double sigma; 163 161 if (double.TryParse(multiplicativeWeightChangeSigmaTextBox.Text, out sigma) && sigma >= 0.0) {
Note: See TracChangeset
for help on using the changeset viewer.