- Timestamp:
- 03/12/13 16:59:51 (11 years ago)
- Location:
- branches/ImprovingItemListView
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ImprovingItemListView
-
Property
svn:ignore
set to
*.suo
-
Property
svn:ignore
set to
-
branches/ImprovingItemListView/HeuristicLab.Core/3.3/Item.cs
r7259 r9314 32 32 [Item("Item", "Base class for all HeuristicLab items.")] 33 33 public abstract class Item : IItem { 34 private string itemName; 34 35 public virtual string ItemName { 35 get { return ItemAttribute.GetName(this.GetType()); } 36 get { 37 if (itemName == null) { 38 itemName = ItemAttribute.GetName(this.GetType()); 39 } 40 return itemName; 41 } 36 42 } 43 private string itemDescription; 37 44 public virtual string ItemDescription { 38 get { return ItemAttribute.GetDescription(this.GetType()); } 45 get { 46 if (itemName == null) { 47 itemName = ItemAttribute.GetDescription(this.GetType()); 48 } 49 return itemName; 50 } 39 51 } 52 private Version itemVersion; 40 53 public Version ItemVersion { 41 get { return ItemAttribute.GetVersion(this.GetType()); } 54 get { 55 if (itemVersion == null) { 56 itemVersion = ItemAttribute.GetVersion(this.GetType()); 57 } 58 return itemVersion; 59 } 42 60 } 43 61 public static Image StaticItemImage { 44 62 get { return HeuristicLab.Common.Resources.VSImageLibrary.Class; } 45 63 } 64 private Image itemImage; 46 65 public virtual Image ItemImage { 47 get { return ItemAttribute.GetImage(this.GetType()); } 66 get { 67 if (itemImage == null) { 68 itemImage = ItemAttribute.GetImage(this.GetType()); 69 } 70 return itemImage; 71 } 48 72 } 49 73
Note: See TracChangeset
for help on using the changeset viewer.