- Timestamp:
- 09/21/10 06:29:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/ServiceClients/AlgorithmClass.cs
r4433 r4456 20 20 #endregion 21 21 22 using System.ComponentModel;23 using HeuristicLab.Common;24 22 using HeuristicLab.Core; 25 23 26 24 namespace HeuristicLab.Clients.OKB { 27 25 [Item("AlgorithmClass", "An OKB algorithm class.")] 28 public partial class AlgorithmClass : INamedOKBItem{26 public partial class AlgorithmClass { 29 27 public AlgorithmClass() { 30 28 Name = "New Algorithm Class"; 31 29 } 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 }52 30 } 53 31 }
Note: See TracChangeset
for help on using the changeset viewer.