- Timestamp:
- 04/21/10 06:14:03 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Views/3.3/AlgorithmOperatorView.cs
r3376 r3454 75 75 if (Content == null) { 76 76 breakpointCheckBox.Checked = false; 77 breakpointCheckBox.Enabled = false;78 77 parameterCollectionView.Content = null; 79 78 operatorGraphViewHost.Content = null; 80 tabControl.Enabled = false;81 79 } else { 82 80 breakpointCheckBox.Checked = Content.Breakpoint; 83 breakpointCheckBox.Enabled = true;84 81 parameterCollectionView.Content = ((IOperator)Content).Parameters; 85 82 operatorGraphViewHost.ViewType = null; 86 83 operatorGraphViewHost.Content = Content.OperatorGraph; 87 tabControl.Enabled = true;88 84 } 85 SetEnabledStateOfControls(); 86 } 87 88 protected override void OnReadOnlyChanged() { 89 base.OnReadOnlyChanged(); 90 SetEnabledStateOfControls(); 91 } 92 93 private void SetEnabledStateOfControls() { 94 breakpointCheckBox.Enabled = Content != null && !ReadOnly; 95 parameterCollectionView.Enabled = Content != null; 96 parameterCollectionView.ReadOnly = ReadOnly; 97 operatorGraphViewHost.Enabled = Content != null; 98 operatorGraphViewHost.ReadOnly = ReadOnly; 89 99 } 90 100
Note: See TracChangeset
for help on using the changeset viewer.