Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/11 03:17:35 (11 years ago)
Author:
swagner
Message:

Implemented static item image properties to avoid instance creation in TypeSelector and NewItemDialog (#1651)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Hive/3.3/ServiceClients/HiveItem.cs

    r6976 r7201  
    3838      get { return ItemAttribute.GetVersion(this.GetType()); }
    3939    }
     40    public static new Image StaticItemImage {
     41      get { return HeuristicLab.Common.Resources.VSImageLibrary.Database; }
     42    }
    4043    public virtual Image ItemImage {
    4144      get {
     
    4346          return HeuristicLab.Common.Resources.VSImageLibrary.DatabaseModified;
    4447        else
    45           return HeuristicLab.Common.Resources.VSImageLibrary.Database;
     48          return ItemAttribute.GetImage(this.GetType());
    4649      }
    4750    }
Note: See TracChangeset for help on using the changeset viewer.