Free cookie consent management tool by TermsFeed Policy Generator

Changeset 3136 for trunk/sources


Ignore:
Timestamp:
03/20/10 02:47:56 (15 years ago)
Author:
swagner
Message:

Restructured code of changes made in r3106 (#919).

Location:
trunk/sources/HeuristicLab.Parameters/3.3
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Parameters/3.3/LookupParameter.cs

    r3106 r3136  
    5252        cachedActualValue = value;
    5353        SetActualValue(value);
    54       }
    55     }
    56     public override System.Drawing.Image ItemImage {
    57       get {
    58         if (typeof(IOperator).IsAssignableFrom(typeof(T)))
    59           return HeuristicLab.Common.Resources.VS2008ImageLibrary.Method;
    60         else
    61           return base.ItemImage;
    6254      }
    6355    }
  • trunk/sources/HeuristicLab.Parameters/3.3/OptionalConstrainedValueParameter.cs

    r3106 r3136  
    6969          );
    7070        Value = val;
    71       }
    72     }
    73 
    74     public override System.Drawing.Image ItemImage {
    75       get {
    76         if (typeof(IOperator).IsAssignableFrom(typeof(T)))
    77           return HeuristicLab.Common.Resources.VS2008ImageLibrary.Method;
    78         else
    79           return base.ItemImage;
    8071      }
    8172    }
  • trunk/sources/HeuristicLab.Parameters/3.3/OptionalValueParameter.cs

    r3106 r3136  
    5757      }
    5858    }
    59     public override System.Drawing.Image ItemImage {
    60       get {
    61         if (typeof(IOperator).IsAssignableFrom(typeof(T)))
    62           return HeuristicLab.Common.Resources.VS2008ImageLibrary.Method;
    63         else
    64           return base.ItemImage;
    65       }
    66     }
    6759
    6860    public OptionalValueParameter()
  • trunk/sources/HeuristicLab.Parameters/3.3/Parameter.cs

    r3017 r3136  
    2121
    2222using System;
     23using System.Drawing;
    2324using HeuristicLab.Common;
    2425using HeuristicLab.Core;
     
    3233  [StorableClass]
    3334  public abstract class Parameter : NamedItem, IParameter {
     35    public override Image ItemImage {
     36      get {
     37        if ((dataType != null) && (typeof(IOperator).IsAssignableFrom(dataType)))
     38          return HeuristicLab.Common.Resources.VS2008ImageLibrary.Method;
     39        else
     40          return base.ItemImage;
     41      }
     42    }
    3443    public override bool CanChangeName {
    3544      get { return false; }
Note: See TracChangeset for help on using the changeset viewer.