- Timestamp:
- 04/20/10 02:02:39 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r3402 r3430 33 33 get { return (IStringConvertibleValue)base.Content; } 34 34 set { base.Content = value; } 35 } 36 37 public override bool ReadOnly { 38 get { 39 if ((Content != null) && Content.ReadOnly) return true; 40 return base.ReadOnly; 41 } 42 set { base.ReadOnly = value; } 35 43 } 36 44 … … 103 111 } 104 112 private void valueTextBox_Validated(object sender, EventArgs e) { 105 Content.SetValue(valueTextBox.Text);113 if (!Content.ReadOnly) Content.SetValue(valueTextBox.Text); 106 114 errorProvider.SetError(valueTextBox, string.Empty); 107 115 valueTextBox.Text = Content.GetValue();
Note: See TracChangeset
for help on using the changeset viewer.