Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/14/11 00:18:46 (13 years ago)
Author:
abeham
Message:

#1465

  • worked on histogram integration
    • Added control to display DataRowVisualProperties
    • Added a dialog to select the DataRowVisualProperties of different series
    • Added a Properties menu item to the context menu and an option to show or hide this item (default is hide)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r5445 r6010  
    4040    [DefaultValue(true)]
    4141    public bool EnableMiddleClickPanning { get; set; }
     42    [DefaultValue(false)]
     43    public bool ShowPropertiesContextMenuItem { get; set; }
    4244
    4345    public static void CustomizeChartArea(ChartArea chartArea) {
     
    138140    #endregion
    139141
     142    private void contextMenuStrip_Opening(object sender, CancelEventArgs e) {
     143      propertiesToolStripSeparator.Visible = ShowPropertiesContextMenuItem;
     144      propertiesToolStripMenuItem.Visible = ShowPropertiesContextMenuItem;
     145    }
     146
    140147    private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) {
    141148      // Set image file format
     
    168175      Clipboard.SetDataObject(bmp);
    169176    }
     177
     178    private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) {
     179      OnPropertiesClicked();
     180    }
     181
     182    public event EventHandler PropertiesClicked;
     183    private void OnPropertiesClicked() {
     184      var handler = PropertiesClicked;
     185      if (handler != null) handler(this, EventArgs.Empty);
     186    }
    170187  }
    171188}
Note: See TracChangeset for help on using the changeset viewer.