- Timestamp:
- 04/16/10 01:49:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/NamedItemView.cs
r3350 r3362 74 74 toolTip.SetToolTip(descriptionTextBox, Content.Description); 75 75 } 76 SetEnable StateOfControls();76 SetEnabledStateOfControls(); 77 77 } 78 78 79 79 protected override void OnReadOnlyChanged() { 80 80 base.OnReadOnlyChanged(); 81 SetEnable StateOfControls();81 SetEnabledStateOfControls(); 82 82 } 83 private void SetEnable StateOfControls() {83 private void SetEnabledStateOfControls() { 84 84 if (Content == null) { 85 85 nameTextBox.Enabled = false; … … 137 137 138 138 protected void descriptionTextBox_DoubleClick(object sender, EventArgs e) { 139 using (TextDialog dialog = new TextDialog("Description of " + Content.Name, Content.Description, !Content.CanChangeDescription)) {139 using (TextDialog dialog = new TextDialog("Description of " + Content.Name, Content.Description, ReadOnly || !Content.CanChangeDescription)) { 140 140 if (dialog.ShowDialog(this) == DialogResult.OK) 141 141 Content.Description = dialog.Content;
Note: See TracChangeset
for help on using the changeset viewer.