Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/19/11 03:17:35 (13 years ago)
Author:
swagner
Message:

Implemented static item image properties to avoid instance creation in TypeSelector and NewItemDialog (#1651)

Location:
trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/EvaluationCache.cs

    r6519 r7201  
    8686
    8787    #region Properties
    88     public override System.Drawing.Image ItemImage {
     88    public static new System.Drawing.Image StaticItemImage {
    8989      get { return VSImageLibrary.Database; }
    9090    }
     
    220220                index[entry] = list.AddLast(entry);
    221221                Trim();
    222               } finally {
     222              }
     223              finally {
    223224                if (!lockTaken)
    224225                  Monitor.Enter(cacheLock, ref lockTaken);
     
    233234          }
    234235        }
    235       } finally {
     236      }
     237      finally {
    236238        if (lockTaken)
    237239          Monitor.Exit(cacheLock);
  • trunk/sources/HeuristicLab.Problems.ExternalEvaluation/3.3/ExternalEvaluationProblem.cs

    r6189 r7201  
    4141    public string Filename { get; set; }
    4242
    43     public override Image ItemImage {
     43    public static new Image StaticItemImage {
    4444      get { return HeuristicLab.Common.Resources.VSImageLibrary.Type; }
    4545    }
Note: See TracChangeset for help on using the changeset viewer.