Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/10 16:43:57 (15 years ago)
Author:
swagner
Message:

Moved extension methods of Control from HeuristicLab.Core.Views to HeuristicLab.MainForm.WindowsForms and suspended/resumed repainting in some controls to improve UI response times (#887).

Location:
trunk/sources/HeuristicLab.Optimization.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/AlgorithmView.cs

    r3149 r3177  
    146146        Invoke(new EventHandler(Content_Started), sender, e);
    147147      else {
    148         this.SuspendRepaint();
    149148        SaveEnabled = false;
    150149        parameterCollectionView.Enabled = false;
     
    156155        resetButton.Enabled = false;
    157156        UpdateExecutionTimeTextBox();
    158         this.ResumeRepaint(true);
    159157      }
    160158    }
     
    163161        Invoke(new EventHandler(Content_Stopped), sender, e);
    164162      else {
    165         this.SuspendRepaint();
    166163        SaveEnabled = true;
    167164        parameterCollectionView.Enabled = true;
     
    173170        resetButton.Enabled = true;
    174171        UpdateExecutionTimeTextBox();
    175         this.ResumeRepaint(true);
    176172      }
    177173    }
     
    207203        this.Cursor = Cursors.AppStarting;
    208204        newProblemButton.Enabled = openProblemButton.Enabled = saveProblemButton.Enabled = false;
     205        problemViewHost.Enabled = false;
    209206
    210207        var call = new Func<string, object>(XmlParser.Deserialize);
     
    223220            else
    224221              Content.Problem = problem;
     222            problemViewHost.Enabled = true;
    225223            newProblemButton.Enabled = openProblemButton.Enabled = saveProblemButton.Enabled = true;
    226224            this.Cursor = Cursors.Default;
     
    234232        this.Cursor = Cursors.AppStarting;
    235233        newProblemButton.Enabled = openProblemButton.Enabled = saveProblemButton.Enabled = false;
     234        problemViewHost.Enabled = false;
    236235
    237236        var call = new Action<IProblem, string, int>(XmlGenerator.Serialize);
     
    246245          }
    247246          Invoke(new Action(delegate() {
     247            problemViewHost.Enabled = true;
    248248            newProblemButton.Enabled = openProblemButton.Enabled = saveProblemButton.Enabled = true;
    249249            this.Cursor = Cursors.Default;
  • trunk/sources/HeuristicLab.Optimization.Views/3.3/UserDefinedAlgorithmView.cs

    r2998 r3177  
    112112        this.Cursor = Cursors.AppStarting;
    113113        newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = saveOperatorGraphButton.Enabled = false;
     114        operatorGraphViewHost.Enabled = false;
    114115
    115116        var call = new Func<string, object>(XmlParser.Deserialize);
     
    127128            else
    128129              Content.OperatorGraph = operatorGraph;
     130            operatorGraphViewHost.Enabled = true;
    129131            newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = saveOperatorGraphButton.Enabled = true;
    130132            this.Cursor = Cursors.Default;
     
    138140        this.Cursor = Cursors.AppStarting;
    139141        newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = saveOperatorGraphButton.Enabled = false;
     142        operatorGraphViewHost.Enabled = false;
    140143
    141144        var call = new Action<OperatorGraph, string, int>(XmlGenerator.Serialize);
     
    150153          }
    151154          Invoke(new Action(delegate() {
     155            operatorGraphViewHost.Enabled = true;
    152156            newOperatorGraphButton.Enabled = openOperatorGraphButton.Enabled = saveOperatorGraphButton.Enabled = true;
    153157            this.Cursor = Cursors.Default;
Note: See TracChangeset for help on using the changeset viewer.