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/BatchRun.cs

    r6816 r7201  
    3939    public string Filename { get; set; }
    4040
     41    public static new Image StaticItemImage {
     42      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     43    }
    4144    public override Image ItemImage {
    4245      get {
     
    4548        else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VSImageLibrary.BatchRunPaused;
    4649        else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VSImageLibrary.BatchRunStopped;
    47         else return HeuristicLab.Common.Resources.VSImageLibrary.Event;
     50        else return base.ItemImage;
    4851      }
    4952    }
Note: See TracChangeset for help on using the changeset viewer.