- Timestamp:
- 04/16/10 04:13:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/EngineAlgorithmView.cs
r3361 r3367 101 101 createUserDefinedAlgorithmButton.Enabled = true; 102 102 } 103 SetEnableStateOfControls(); 104 } 105 106 protected override void OnReadOnlyChanged() { 107 base.OnReadOnlyChanged(); 108 SetEnableStateOfControls(); 109 } 110 private void SetEnableStateOfControls() { 111 engineViewHost.ReadOnly = ReadOnly; 112 if (Content == null) 113 engineComboBox.Enabled = false; 114 else 115 engineComboBox.Enabled = Content.ExecutionState != ExecutionState.Started; 103 116 } 104 117 … … 108 121 else { 109 122 createUserDefinedAlgorithmButton.Enabled = Content.ExecutionState != ExecutionState.Started; 110 engineComboBox.Enabled = Content.ExecutionState != ExecutionState.Started;111 engineViewHost.Enabled = Content.ExecutionState != ExecutionState.Started;112 operatorGraphViewHost.Enabled = Content.ExecutionState != ExecutionState.Started;113 123 base.Content_ExecutionStateChanged(sender, e); 114 124 }
Note: See TracChangeset
for help on using the changeset viewer.