Changeset 2556
- Timestamp:
- 12/14/09 00:41:05 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimizer/3.3/FileManager.cs
r2555 r2556 160 160 delegate(object arg) { 161 161 try { 162 DisableView(view); 162 163 SetWaitingCursor(); 163 164 XmlGenerator.Serialize(view.Item, filename, compression); … … 172 173 } finally { 173 174 ResetWaitingCursor(); 175 EnableView(view); 174 176 } 175 177 } … … 214 216 }); 215 217 } 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 } 216 228 #endregion 217 229 }
Note: See TracChangeset
for help on using the changeset viewer.