Free cookie consent management tool by TermsFeed Policy Generator

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

added new version of RunCollectionBubbleChartView (ticket #970)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.