Changeset 2720


Ignore:
Timestamp:
01/29/10 15:11:48 (10 years ago)
Author:
epitzer
Message:

disable elements while updating (or compiling) (#842)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Operators.Programmable/3.2/ProgrammableOperatorView.cs

    r2680 r2720  
    156156
    157157    private void Recompile() {
     158      this.Enabled = false;
    158159      try {
    159160        ProgrammableOperator.Compile();
     
    164165      UpdateControls();
    165166      codeEditor.ShowCompileErrors(ProgrammableOperator.CompileErrors, "ProgrammableOperator");
     167      this.Enabled = true;
    166168    }
    167169
     
    203205    private void InitializeAssemblyList() {
    204206      initializing = true;
     207      assembliesTreeView.Enabled = false;
     208      namespacesTreeView.Enabled = false;
    205209      assembliesTreeView.BeginUpdate();
    206210      assembliesTreeView.Nodes.Clear();
     
    223227      }
    224228      assembliesTreeView.EndUpdate();
     229      assembliesTreeView.Enabled = true;
     230      namespacesTreeView.Enabled = true;
    225231      initializing = false;
    226232    }
     
    228234    private void InitializeNamespacesList() {
    229235      initializing = true;
     236      namespacesTreeView.Enabled = false;
     237      namespacesTreeView.BeginUpdate();
    230238      TreeNode oldTree = new TreeNode("root");
    231239      CloneTreeNodeCollection(oldTree, namespacesTreeView.Nodes);
     
    235243        AddNamespace(namespacesTreeView.Nodes, ns, selectedNamespaces.Contains(ns), oldTree);
    236244      codeEditor.Prefix = GetGeneratedPrefix();
     245      namespacesTreeView.EndUpdate();
     246      namespacesTreeView.Enabled = true;
    237247      initializing = false;
    238248    }
Note: See TracChangeset for help on using the changeset viewer.