Changeset 4097
- Timestamp:
- 07/25/10 00:31:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.MainForm.WindowsForms/3.3/ViewHost.cs
r4084 r4097 23 23 using System.Collections.Generic; 24 24 using System.Linq; 25 using System.Reflection; 25 26 using System.Windows.Forms; 26 27 using HeuristicLab.Common; 27 using System.Reflection;28 28 29 29 namespace HeuristicLab.MainForm.WindowsForms { … … 106 106 107 107 public void ClearCache() { 108 foreach (var cachedView in cachedViews ) {108 foreach (var cachedView in cachedViews.ToArray()) { 109 109 if (cachedView.Value != activeView) { 110 110 Control c = cachedView.Value as Control; … … 116 116 } 117 117 } 118 if (cachedViews.Count == 0) ViewType = null; 118 119 } 119 120
Note: See TracChangeset
for help on using the changeset viewer.