- Timestamp:
- 11/05/13 10:52:45 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Breadcrumbs/HeuristicLab.MainForm.WindowsForms/3.3/Views/View.cs
r9920 r10106 21 21 22 22 using System; 23 using System.Collections.Generic; 23 24 using System.Linq; 24 25 using System.Reflection; … … 261 262 ((Control)this).ResumeRepaint(refresh); 262 263 } 264 265 public IEnumerable<T> GetParentViewsOfType<T>() where T : View { 266 for (var view = Parent; view != null; view = view.Parent) 267 if (view is View) yield return view as T; 268 } 263 269 } 264 270 }
Note: See TracChangeset
for help on using the changeset viewer.