Changeset 4989 for trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs
- Timestamp:
- 11/29/10 13:57:05 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Problems.DataAnalysis.Views/3.3/Symbolic/Symbols/VariableView.cs
r4435 r4989 57 57 protected override void SetEnabledStateOfControls() { 58 58 base.SetEnabledStateOfControls(); 59 weight NuTextBox.Enabled = Content != null;60 weight NuTextBox.ReadOnly = ReadOnly;59 weightMuTextBox.Enabled = Content != null; 60 weightMuTextBox.ReadOnly = ReadOnly; 61 61 weightSigmaTextBox.Enabled = Content != null; 62 62 weightSigmaTextBox.ReadOnly = ReadOnly; 63 weightChange NuTextBox.Enabled = Content != null;64 weightChange NuTextBox.ReadOnly = ReadOnly;63 weightChangeMuTextBox.Enabled = Content != null; 64 weightChangeMuTextBox.ReadOnly = ReadOnly; 65 65 weightChangeSigmaTextBox.Enabled = Content != null; 66 66 weightChangeSigmaTextBox.ReadOnly = ReadOnly; … … 76 76 private void weightNuTextBox_TextChanged(object sender, EventArgs e) { 77 77 double nu; 78 if (double.TryParse(weight NuTextBox.Text, out nu)) {79 Content.Weight Nu = nu;80 errorProvider.SetError(weight NuTextBox, string.Empty);78 if (double.TryParse(weightMuTextBox.Text, out nu)) { 79 Content.WeightMu = nu; 80 errorProvider.SetError(weightMuTextBox, string.Empty); 81 81 } else { 82 errorProvider.SetError(weight NuTextBox, "Invalid value");82 errorProvider.SetError(weightMuTextBox, "Invalid value"); 83 83 } 84 84 } … … 95 95 private void weightChangeNuTextBox_TextChanged(object sender, EventArgs e) { 96 96 double nu; 97 if (double.TryParse(weightChange NuTextBox.Text, out nu)) {98 Content.WeightManipulator Nu = nu;99 errorProvider.SetError(weightChange NuTextBox, string.Empty);97 if (double.TryParse(weightChangeMuTextBox.Text, out nu)) { 98 Content.WeightManipulatorMu = nu; 99 errorProvider.SetError(weightChangeMuTextBox, string.Empty); 100 100 } else { 101 errorProvider.SetError(weightChange NuTextBox, "Invalid value");101 errorProvider.SetError(weightChangeMuTextBox, "Invalid value"); 102 102 } 103 103 } … … 117 117 private void UpdateControl() { 118 118 if (Content == null) { 119 weight NuTextBox.Text = string.Empty;119 weightMuTextBox.Text = string.Empty; 120 120 weightSigmaTextBox.Text = string.Empty; 121 weight NuTextBox.Text = string.Empty;121 weightMuTextBox.Text = string.Empty; 122 122 weightChangeSigmaTextBox.Text = string.Empty; 123 123 } else { 124 weight NuTextBox.Text = Content.WeightNu.ToString();124 weightMuTextBox.Text = Content.WeightMu.ToString(); 125 125 weightSigmaTextBox.Text = Content.WeightSigma.ToString(); 126 weightChange NuTextBox.Text = Content.WeightManipulatorNu.ToString();126 weightChangeMuTextBox.Text = Content.WeightManipulatorMu.ToString(); 127 127 weightChangeSigmaTextBox.Text = Content.WeightManipulatorSigma.ToString(); 128 128 }
Note: See TracChangeset
for help on using the changeset viewer.