Changeset 3428 for trunk/sources/HeuristicLab.Optimization
- Timestamp:
- 04/20/10 00:39:59 (15 years ago)
- Location:
- trunk/sources/HeuristicLab.Optimization/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Optimization/3.3/Interfaces/IRun.cs
r3376 r3428 23 23 using HeuristicLab.Common; 24 24 using HeuristicLab.Core; 25 using System.Drawing; 26 using System; 25 27 26 28 namespace HeuristicLab.Optimization { … … 32 34 IDictionary<string, IItem> Parameters { get; } 33 35 IDictionary<string, IItem> Results { get; } 36 37 Color Color {get;set;} 38 bool Visible { get; set; } 39 event EventHandler Changed; 34 40 } 35 41 } -
trunk/sources/HeuristicLab.Optimization/3.3/Run.cs
r3376 r3428 25 25 using HeuristicLab.Core; 26 26 using HeuristicLab.Persistence.Default.CompositeSerializers.Storable; 27 using System.Drawing; 27 28 28 29 namespace HeuristicLab.Optimization { … … 47 48 public IDictionary<string, IItem> Results { 48 49 get { return results; } 50 } 51 52 private Color color = Color.Black; 53 public Color Color { 54 get { return this.color; } 55 set { 56 if (color != value) { 57 this.color = value; 58 this.OnChanged(); 59 } 60 } 61 } 62 private bool visible = true; 63 public bool Visible { 64 get { return this.visible; } 65 set { 66 if (visible != value) { 67 this.visible = value; 68 this.OnChanged(); 69 } 70 } 71 } 72 public event EventHandler Changed; 73 private void OnChanged() { 74 EventHandler handler = Changed; 75 if (handler != null) 76 handler(this, EventArgs.Empty); 49 77 } 50 78
Note: See TracChangeset
for help on using the changeset viewer.