- Timestamp:
- 04/15/10 01:34:27 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Data.Views/3.3/StringConvertibleValueView.cs
r3317 r3350 61 61 Caption = "StringConvertibleValue View"; 62 62 valueTextBox.Text = string.Empty; 63 valueTextBox.Enabled = false;64 63 } else { 65 64 Caption = Content.GetValue() + " (" + Content.GetType().Name + ")"; 66 65 valueTextBox.Text = Content.GetValue(); 67 valueTextBox.ReadOnly = Content.ReadOnlyView; 66 } 67 SetEnableStateOfControls(); 68 } 69 protected override void OnReadOnlyChanged() { 70 base.OnReadOnlyChanged(); 71 SetEnableStateOfControls(); 72 } 73 private void SetEnableStateOfControls() { 74 if (Content == null) valueTextBox.Enabled = false; 75 else { 68 76 valueTextBox.Enabled = true; 77 valueTextBox.ReadOnly = ReadOnly; 69 78 } 70 79 }
Note: See TracChangeset
for help on using the changeset viewer.