Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/11 09:41:39 (13 years ago)
Author:
epitzer
Message:

#1696: Add static item image according to #1651

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FitnessLandscapeAnalysis/HeuristicLab.Analysis.FitnessLandscape/MultiTrajectory/MultiTrajectoryAnalysis.cs

    r7128 r7202  
    1212using HeuristicLab.Encodings.RealVectorEncoding;
    1313using HeuristicLab.Encodings.PermutationEncoding;
     14using HeuristicLab.Common.Resources;
     15using System.Drawing;
    1416
    1517namespace HeuristicLab.Analysis.FitnessLandscape.MultiTrajectory {
     
    132134    #region Fields & Properties
    133135
    134     public override System.Drawing.Image ItemImage {
     136    public new static Image StaticItemImage { get { return VSImageLibrary.Event; } }
     137
     138    public override Image ItemImage {
    135139      get {
    136         if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePrepared;
    137         else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStarted;
    138         else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePaused;
    139         else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStopped;
    140         else return HeuristicLab.Common.Resources.VSImageLibrary.Event;
     140        switch (ExecutionState) {
     141          case ExecutionState.Prepared: return VSImageLibrary.ExecutablePrepared;
     142          case ExecutionState.Started: return VSImageLibrary.ExecutableStarted;
     143          case ExecutionState.Paused: return VSImageLibrary.ExecutablePaused;
     144          case ExecutionState.Stopped: return VSImageLibrary.ExecutableStopped;
     145          default: return base.ItemImage;
     146        }
    141147      }
    142148    }
Note: See TracChangeset for help on using the changeset viewer.