- Timestamp:
- 12/20/11 11:45:18 (13 years ago)
- Location:
- branches/HeuristicLab.TimeSeries
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HeuristicLab.TimeSeries
-
branches/HeuristicLab.TimeSeries/HeuristicLab.Core/3.3/Attributes/ItemAttribute.cs
r5445 r7213 21 21 22 22 using System; 23 using System.Drawing; 23 24 using System.Linq; 24 25 using System.Reflection; … … 82 83 } 83 84 } 85 public static Image GetImage(Type type) { 86 var staticItemImageProperty = type.GetProperty("StaticItemImage", BindingFlags.Static | BindingFlags.Public | BindingFlags.FlattenHierarchy); 87 return staticItemImageProperty == null ? null : (Image)staticItemImageProperty.GetValue(null, null); 88 } 84 89 } 85 90 }
Note: See TracChangeset
for help on using the changeset viewer.