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

    r3280 r3351  
    3636  public sealed class BatchRun : NamedItem, IOptimizer {
    3737    public override Image ItemImage {
    38       get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; }
     38      get {
     39        if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event;
     40        else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Play;
     41        else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Pause;
     42        else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Stop;
     43        else return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event;
     44      }
    3945    }
    4046
     
    4753          executionState = value;
    4854          OnExecutionStateChanged();
     55          OnItemImageChanged();
    4956        }
    5057      }
Note: See TracChangeset for help on using the changeset viewer.