Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/15/10 04:37:36 (14 years ago)
Author:
swagner
Message:

Implemented reviewers' comments (#893).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Core/3.3/Executable.cs

    r3289 r3351  
    3030  public abstract class Executable : Item, IExecutable {
    3131    public override Image ItemImage {
    32       get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; }
     32      get {
     33        if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event;
     34        else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Play;
     35        else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Pause;
     36        else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Stop;
     37        else return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event;
     38      }
    3339    }
    3440
     
    4147          executionState = value;
    4248          OnExecutionStateChanged();
     49          OnItemImageChanged();
    4350        }
    4451      }
Note: See TracChangeset for help on using the changeset viewer.