Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/20/10 00:39:59 (15 years ago)
Author:
mkommend
Message:

added new version of RunCollectionBubbleChartView (ticket #970)

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  
    2323using HeuristicLab.Common;
    2424using HeuristicLab.Core;
     25using System.Drawing;
     26using System;
    2527
    2628namespace HeuristicLab.Optimization {
     
    3234    IDictionary<string, IItem> Parameters { get; }
    3335    IDictionary<string, IItem> Results { get; }
     36
     37    Color Color {get;set;}
     38    bool Visible { get; set; }
     39    event EventHandler Changed;
    3440  }
    3541}
  • trunk/sources/HeuristicLab.Optimization/3.3/Run.cs

    r3376 r3428  
    2525using HeuristicLab.Core;
    2626using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
     27using System.Drawing;
    2728
    2829namespace HeuristicLab.Optimization {
     
    4748    public IDictionary<string, IItem> Results {
    4849      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);
    4977    }
    5078
Note: See TracChangeset for help on using the changeset viewer.