- Timestamp:
- 04/16/10 01:49:10 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Core.Views/3.3/ParameterizedNamedItemView.cs
r2917 r3362 52 52 protected override void OnContentChanged() { 53 53 base.OnContentChanged(); 54 if (Content == null) { 55 parameterCollectionView.Content = null; 56 } else { 57 parameterCollectionView.Content = Content.Parameters; 58 } 54 parameterCollectionView.Content = Content == null ? null : Content.Parameters; 55 SetEnabledStateOfControls(); 56 } 57 58 protected override void OnReadOnlyChanged() { 59 base.OnReadOnlyChanged(); 60 SetEnabledStateOfControls(); 61 } 62 63 private void SetEnabledStateOfControls() { 64 parameterCollectionView.Enabled = Content != null; 65 parameterCollectionView.ReadOnly = ReadOnly; 59 66 } 60 67 }
Note: See TracChangeset
for help on using the changeset viewer.