Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
11/24/14 14:44:42 (10 years ago)
Author:
pfleck
Message:

#2269

  • Added a generic EnumValue for wrapping an enum.
  • Added a generic EnumValueView which displays a drop down with the available enum values.
  • Made AgingScheme an EnumValue instead of ValueTypeValue.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ALPS/HeuristicLab.Algorithms.ALPS/3.3/AgingScheme.cs

    r11568 r11569  
    2020#endregion
    2121
    22 using System;
    23 using System.Drawing;
    2422using HeuristicLab.Common;
    2523using HeuristicLab.Core;
     
    3735  [Item("AgingScheme", "Represents a certain type of an aging scheme.")]
    3836  [StorableClass]
    39   public class AgingScheme : ValueTypeValue<AgingSchemes> {
    40     public static new Image StaticItemImage {
    41       get { return HeuristicLab.Common.Resources.VSImageLibrary.Enum; }
    42     }
    43 
     37  public class AgingScheme : EnumValue<AgingSchemes> {
    4438    [StorableConstructor]
    4539    protected AgingScheme(bool deserializing) : base(deserializing) { }
    4640    protected AgingScheme(AgingScheme original, Cloner cloner) : base(original, cloner) { }
    47     public AgingScheme() : base() { }
     41
     42    public AgingScheme() : base(AgingSchemes.Linear) { }
    4843    public AgingScheme(AgingSchemes type) : base(type) { }
    4944
Note: See TracChangeset for help on using the changeset viewer.