Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/21/10 06:29:00 (14 years ago)
Author:
swagner
Message:

Worked on OKB (#1174)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/AlgorithmClass.cs

    r4433 r4456  
    2020#endregion
    2121
    22 using System.ComponentModel;
    23 using HeuristicLab.Common;
    2422using HeuristicLab.Core;
    2523
    2624namespace HeuristicLab.Clients.OKB {
    2725  [Item("AlgorithmClass", "An OKB algorithm class.")]
    28   public partial class AlgorithmClass : INamedOKBItem {
     26  public partial class AlgorithmClass {
    2927    public AlgorithmClass() {
    3028      Name = "New Algorithm Class";
    3129    }
    32 
    33     public override IDeepCloneable Clone(Cloner cloner) {
    34       AlgorithmClass clone = new AlgorithmClass();
    35       cloner.RegisterClonedObject(this, clone);
    36       clone.Id = Id;
    37       clone.Name = Name;
    38       clone.Description = Description;
    39       clone.Algorithms = (ItemCollection<Algorithm>)cloner.Clone(Algorithms);
    40       return clone;
    41     }
    42 
    43     public override string ToString() {
    44       return Name;
    45     }
    46 
    47     protected override void OnPropertyChanged(PropertyChangedEventArgs e) {
    48       base.OnPropertyChanged(e);
    49       if (e.PropertyName == "Name")
    50         OnToStringChanged();
    51     }
    5230  }
    5331}
Note: See TracChangeset for help on using the changeset viewer.