Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/11 03:17:35 (12 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.Optimization/3.3/Algorithms/Algorithm.cs

    r6114 r7201  
    3737  [StorableClass]
    3838  public abstract class Algorithm : ParameterizedNamedItem, IAlgorithm {
     39    public static new Image StaticItemImage {
     40      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     41    }
    3942    public override Image ItemImage {
    4043      get {
     
    4346        else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePaused;
    4447        else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStopped;
    45         else return HeuristicLab.Common.Resources.VSImageLibrary.Event;
     48        else return base.ItemImage;
    4649      }
    4750    }
Note: See TracChangeset for help on using the changeset viewer.