Changeset 3351 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 04/15/10 04:37:36 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/Algorithm.cs ¶
r3286 r3351 35 35 public abstract class Algorithm : ParameterizedNamedItem, IAlgorithm { 36 36 public override Image ItemImage { 37 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; } 37 get { 38 if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; 39 else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Play; 40 else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Pause; 41 else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Stop; 42 else return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; 43 } 38 44 } 39 45 … … 46 52 executionState = value; 47 53 OnExecutionStateChanged(); 54 OnItemImageChanged(); 48 55 } 49 56 } -
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/BatchRun.cs ¶
r3280 r3351 36 36 public sealed class BatchRun : NamedItem, IOptimizer { 37 37 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 } 39 45 } 40 46 … … 47 53 executionState = value; 48 54 OnExecutionStateChanged(); 55 OnItemImageChanged(); 49 56 } 50 57 } -
TabularUnified trunk/sources/HeuristicLab.Optimization/3.3/Experiment.cs ¶
r3280 r3351 37 37 public sealed class Experiment : NamedItem, IOptimizer { 38 38 public override Image ItemImage { 39 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; } 39 get { 40 if (ExecutionState == ExecutionState.Prepared) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; 41 else if (ExecutionState == ExecutionState.Started) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Play; 42 else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Pause; 43 else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VS2008ImageLibrary.Stop; 44 else return HeuristicLab.Common.Resources.VS2008ImageLibrary.Event; 45 } 40 46 } 41 47 … … 48 54 executionState = value; 49 55 OnExecutionStateChanged(); 56 OnItemImageChanged(); 50 57 } 51 58 }
Note: See TracChangeset
for help on using the changeset viewer.