Changeset 4421 for branches/OKB/HeuristicLab.Clients.OKB-3.3/Extensions.cs
- Timestamp:
- 09/17/10 04:25:22 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB/HeuristicLab.Clients.OKB-3.3/Extensions.cs
r4408 r4421 20 20 #endregion 21 21 22 using System;23 22 using System.ComponentModel; 24 using System.Drawing; 25 using HeuristicLab.Collections; 26 using HeuristicLab.Common; 23 using HeuristicLab.Core; 27 24 28 namespace HeuristicLab.Clients.OKB.AdminService { 29 public interface IEntity : IContent, INotifyPropertyChanged { 30 Image EntityImage { get; } 31 32 event EventHandler EntityImageChanged; 33 event EventHandler ToStringChanged; 34 } 35 36 public interface INamedEntity : IEntity { 25 namespace HeuristicLab.Clients.OKB { 26 public interface INamedEntity : IItem, INotifyPropertyChanged { 37 27 string Name { get; set; } 38 28 string Description { get; set; } 39 29 } 40 30 41 public interface IEntityCollection<T> : IObservableCollection<T>, IEntity where T : class, IEntity { } 42 43 public partial class AlgorithmClass : INamedEntity { 44 public Image EntityImage { 45 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; } 46 } 47 48 public event EventHandler EntityImageChanged; 49 protected virtual void OnEntityImageChanged() { 50 EventHandler handler = EntityImageChanged; 51 if (handler != null) handler(this, EventArgs.Empty); 52 } 53 public event EventHandler ToStringChanged; 54 protected virtual void OnToStringChanged() { 55 EventHandler handler = ToStringChanged; 56 if (handler != null) handler(this, EventArgs.Empty); 57 } 31 [Item("AlgorithmClass", "An OKB algorithm class.")] 32 public sealed partial class AlgorithmClass : INamedEntity { 58 33 } 59 34 public partial class Algorithm : INamedEntity { 60 public Image EntityImage {61 get { return HeuristicLab.Common.Resources.VS2008ImageLibrary.Class; }62 }63 64 public event EventHandler EntityImageChanged;65 protected virtual void OnEntityImageChanged() {66 EventHandler handler = EntityImageChanged;67 if (handler != null) handler(this, EventArgs.Empty);68 }69 public event EventHandler ToStringChanged;70 protected virtual void OnToStringChanged() {71 EventHandler handler = ToStringChanged;72 if (handler != null) handler(this, EventArgs.Empty);73 }74 35 } 75 36 }
Note: See TracChangeset
for help on using the changeset viewer.