Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2556


Ignore:
Timestamp:
12/14/09 00:41:05 (15 years ago)
Author:
swagner
Message:

Disabled views while they are saved (#814)

File:
1 edited

Legend:

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

    r2555 r2556  
    160160          delegate(object arg) {
    161161            try {
     162              DisableView(view);
    162163              SetWaitingCursor();
    163164              XmlGenerator.Serialize(view.Item, filename, compression);
     
    172173            } finally {
    173174              ResetWaitingCursor();
     175              EnableView(view);
    174176            }
    175177          }
     
    214216      });
    215217    }
     218    private static void DisableView(IView view) {
     219      Invoke(delegate() {
     220        ((UserControl)view).Enabled = false;
     221      });
     222    }
     223    private static void EnableView(IView view) {
     224      Invoke(delegate() {
     225        ((UserControl)view).Enabled = true;
     226      });
     227    }
    216228    #endregion
    217229  }
Note: See TracChangeset for help on using the changeset viewer.