Changeset 5572 for branches/DataAnalysis Refactoring/HeuristicLab.Problems.ExternalEvaluation.GP.Views/3.4/VariableSymbolView.cs
- Timestamp:
- 02/28/11 19:00:35 (14 years ago)
- Location:
- branches/DataAnalysis Refactoring/HeuristicLab.Problems.ExternalEvaluation.GP.Views/3.4
- Files:
-
- 1 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/DataAnalysis Refactoring/HeuristicLab.Problems.ExternalEvaluation.GP.Views/3.4/VariableSymbolView.cs
r5445 r5572 32 32 namespace HeuristicLab.Problems.ExternalEvaluation.GP.Views { 33 33 [View("Variable View")] 34 [Content(typeof(Variable) , IsDefaultView = true)]34 [Content(typeof(Variable))] 35 35 public sealed partial class VariableSymbolView : NamedItemView { 36 36 private CheckedItemCollectionView<StringValue> variableNamesView; … … 38 38 private bool suppressDownstreamSynchronization; 39 39 40 public new Variable Content {41 get { return ( Variable)base.Content; }40 public new HeuristicLab.Problems.DataAnalysis.Symbolic.Variable Content { 41 get { return (HeuristicLab.Problems.DataAnalysis.Symbolic.Variable)base.Content; } 42 42 set { base.Content = value; } 43 43 } … … 91 91 private void SynchronizeParameters() { 92 92 suppressDownstreamSynchronization = true; 93 weight NuTextBox.Text = Content.WeightNu.ToString();93 weightMuTextBox.Text = Content.WeightMu.ToString(); 94 94 weightSigmaTextBox.Text = Content.WeightSigma.ToString(); 95 weightManipulator NuTextBox.Text = Content.WeightManipulatorNu.ToString();95 weightManipulatorMuTextBox.Text = Content.WeightManipulatorMu.ToString(); 96 96 weightManipulatorSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString(); 97 97 suppressDownstreamSynchronization = false; … … 100 100 protected override void SetEnabledStateOfControls() { 101 101 base.SetEnabledStateOfControls(); 102 weight NuTextBox.Enabled = !ReadOnly && Content != null;102 weightMuTextBox.Enabled = !ReadOnly && Content != null; 103 103 weightSigmaTextBox.Enabled = !ReadOnly && Content != null; 104 weightManipulator NuTextBox.Enabled = !ReadOnly && Content != null;104 weightManipulatorMuTextBox.Enabled = !ReadOnly && Content != null; 105 105 weightManipulatorSigmaTextBox.Enabled = !ReadOnly && Content != null; 106 106 } … … 122 122 e.Cancel = true; 123 123 else { 124 if (textBox == weight NuTextBox) {125 Content.Weight Nu = value;124 if (textBox == weightMuTextBox) { 125 Content.WeightMu = value; 126 126 } else if (textBox == weightSigmaTextBox) { 127 127 Content.WeightSigma = value; 128 } else if (textBox == weightManipulator NuTextBox) {129 Content.WeightManipulator Nu = value;128 } else if (textBox == weightManipulatorMuTextBox) { 129 Content.WeightManipulatorMu = value; 130 130 } else if (textBox == weightManipulatorSigmaTextBox) { 131 131 Content.WeightManipulatorSigma = value;
Note: See TracChangeset
for help on using the changeset viewer.