Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/22/10 16:43:57 (14 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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs

    r2961 r3177  
    2828using HeuristicLab.Core.Views;
    2929using HeuristicLab.MainForm;
     30using HeuristicLab.MainForm.WindowsForms;
    3031using HeuristicLab.Persistence.Default.Xml;
    3132
     
    241242    private static void DisableView(IView view) {
    242243      Invoke(delegate() {
    243         ((UserControl)view).Enabled = false;
     244        ((Control)view).SuspendRepaint();
     245        ((Control)view).Enabled = false;
     246        ((Control)view).ResumeRepaint(true);
    244247      });
    245248    }
    246249    private static void EnableView(IView view) {
    247250      Invoke(delegate() {
    248         ((UserControl)view).Enabled = true;
     251        ((Control)view).SuspendRepaint();
     252        ((Control)view).Enabled = true;
     253        ((Control)view).ResumeRepaint(true);
    249254      });
    250255    }
Note: See TracChangeset for help on using the changeset viewer.