Changeset 2720 for trunk/sources/HeuristicLab.Operators.Programmable
- Timestamp:
- 01/29/10 15:11:48 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Operators.Programmable/3.2/ProgrammableOperatorView.cs
r2680 r2720 156 156 157 157 private void Recompile() { 158 this.Enabled = false; 158 159 try { 159 160 ProgrammableOperator.Compile(); … … 164 165 UpdateControls(); 165 166 codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors, "ProgrammableOperator"); 167 this.Enabled = true; 166 168 } 167 169 … … 203 205 private void InitializeAssemblyList() { 204 206 initializing = true; 207 assembliesTreeView.Enabled = false; 208 namespacesTreeView.Enabled = false; 205 209 assembliesTreeView.BeginUpdate(); 206 210 assembliesTreeView.Nodes.Clear(); … … 223 227 } 224 228 assembliesTreeView.EndUpdate(); 229 assembliesTreeView.Enabled = true; 230 namespacesTreeView.Enabled = true; 225 231 initializing = false; 226 232 } … … 228 234 private void InitializeNamespacesList() { 229 235 initializing = true; 236 namespacesTreeView.Enabled = false; 237 namespacesTreeView.BeginUpdate(); 230 238 TreeNode oldTree = new TreeNode("root"); 231 239 CloneTreeNodeCollection(oldTree, namespacesTreeView.Nodes); … … 235 243 AddNamespace(namespacesTreeView.Nodes, ns, selectedNamespaces.Contains(ns), oldTree); 236 244 codeEditor.Prefix = GetGeneratedPrefix(); 245 namespacesTreeView.EndUpdate(); 246 namespacesTreeView.Enabled = true; 237 247 initializing = false; 238 248 }
Note: See TracChangeset
for help on using the changeset viewer.