- Timestamp:
- 04/16/10 04:13:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.cs
r3361 r3367 56 56 protected override void OnContentChanged() { 57 57 base.OnContentChanged(); 58 if (Content == null) 58 if (Content == null) 59 59 globalScopeView.Content = null; 60 else 60 else 61 61 globalScopeView.Content = Content.GlobalScope; 62 SetEnableStateOfControls(); 62 63 } 63 64 64 protected override void Content_ExecutionStateChanged(object sender, EventArgs e) { 65 if (InvokeRequired) 66 Invoke(new EventHandler(Content_ExecutionStateChanged), sender, e); 67 else { 65 protected override void OnReadOnlyChanged() { 66 base.OnReadOnlyChanged(); 67 SetEnableStateOfControls(); 68 } 69 private void SetEnableStateOfControls() { 70 globalScopeView.ReadOnly = ReadOnly; 71 operatorGraphViewHost.ReadOnly = ReadOnly; 72 if (Content == null) 73 newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = saveOperatorGraphButton.Enabled = false; 74 else 68 75 newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = saveOperatorGraphButton.Enabled = Content.ExecutionState != ExecutionState.Started; 69 globalScopeView.Enabled = Content.ExecutionState != ExecutionState.Started;70 base.Content_ExecutionStateChanged(sender, e);71 }72 76 } 73 77
Note: See TracChangeset
for help on using the changeset viewer.