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)

Location:
trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/Benchmark.cs

    r7015 r7201  
    189189    }
    190190
     191    public static Image StaticItemImage {
     192      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     193    }
    191194    public Image ItemImage {
    192195      get {
     
    195198        else if (ExecutionState == ExecutionState.Paused) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutablePaused;
    196199        else if (ExecutionState == ExecutionState.Stopped) return HeuristicLab.Common.Resources.VSImageLibrary.ExecutableStopped;
    197         else return HeuristicLab.Common.Resources.VSImageLibrary.Event;
     200        else return ItemAttribute.GetImage(this.GetType());
    198201      }
    199202    }
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/DhrystoneBenchmark.cs

    r7006 r7201  
    6464    }
    6565
     66    public static Image StaticItemImage {
     67      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     68    }
    6669    public Image ItemImage {
    67       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     70      get { return ItemAttribute.GetImage(this.GetType()); }
    6871    }
    6972
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/LinpackBenchmark.cs

    r7007 r7201  
    6464    }
    6565
     66    public static Image StaticItemImage {
     67      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     68    }
    6669    public Image ItemImage {
    67       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     70      get { return ItemAttribute.GetImage(this.GetType()); }
    6871    }
    6972
  • trunk/sources/HeuristicLab.Algorithms.Benchmarks/3.3/WhetstoneBenchmark.cs

    r7006 r7201  
    6464    }
    6565
     66    public static Image StaticItemImage {
     67      get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     68    }
    6669    public Image ItemImage {
    67       get { return HeuristicLab.Common.Resources.VSImageLibrary.Event; }
     70      get { return ItemAttribute.GetImage(this.GetType()); }
    6871    }
    6972
Note: See TracChangeset for help on using the changeset viewer.