- Timestamp:
- 04/16/10 04:13:49 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization.Views/3.3/BatchRunView.cs
r3299 r3367 97 97 executionTimeTextBox.Enabled = true; 98 98 } 99 SetEnableStateOfControls(); 100 } 101 protected override void OnReadOnlyChanged() { 102 base.OnReadOnlyChanged(); 103 SetEnableStateOfControls(); 104 } 105 private void SetEnableStateOfControls() { 106 repetitionsNumericUpDown.ReadOnly = ReadOnly; 107 algorithmViewHost.ReadOnly = ReadOnly; 108 runsView.ReadOnly = ReadOnly; 99 109 } 100 110 … … 109 119 Invoke(new EventHandler(Content_ExecutionStateChanged), sender, e); 110 120 else { 111 nameTextBox.Enabled = Content.ExecutionState != ExecutionState.Started; 112 descriptionTextBox.Enabled = Content.ExecutionState != ExecutionState.Started; 121 this.ReadOnly = Content.ExecutionState == ExecutionState.Started; 113 122 SaveEnabled = Content.ExecutionState != ExecutionState.Started; 114 repetitionsNumericUpDown.Enabled = Content.ExecutionState != ExecutionState.Started;115 123 newAlgorithmButton.Enabled = openAlgorithmButton.Enabled = saveAlgorithmButton.Enabled = Content.ExecutionState != ExecutionState.Started; 116 124 EnableDisableButtons(); … … 237 245 private void algorithmPanel_DragEnterOver(object sender, DragEventArgs e) { 238 246 e.Effect = DragDropEffects.None; 247 if (ReadOnly) 248 return; 239 249 Type type = e.Data.GetData("Type") as Type; 240 250 if ((type != null) && (typeof(IAlgorithm).IsAssignableFrom(type))) {
Note: See TracChangeset
for help on using the changeset viewer.