Changeset 6176 for branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
- Timestamp:
- 05/10/11 15:25:05 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/histogram/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
r6014 r6176 25 25 using System.Windows.Forms; 26 26 using System.Windows.Forms.DataVisualization.Charting; 27 using HeuristicLab.Common.Resources;28 27 29 28 namespace HeuristicLab.Visualization.ChartControlsExtensions { … … 32 31 : base() { 33 32 InitializeComponent(); 34 propertiesToolStripMenuItem.Image = VSImageLibrary.Properties;35 33 EnableDoubleClickResetsZoom = true; 36 34 EnableMiddleClickPanning = true; … … 42 40 [DefaultValue(true)] 43 41 public bool EnableMiddleClickPanning { get; set; } 44 [DefaultValue(false)]45 public bool ShowPropertiesContextMenuItem { get; set; }46 42 47 43 public static void CustomizeChartArea(ChartArea chartArea) { … … 142 138 #endregion 143 139 144 private void contextMenuStrip_Opening(object sender, CancelEventArgs e) {145 propertiesToolStripSeparator.Visible = ShowPropertiesContextMenuItem;146 propertiesToolStripMenuItem.Visible = ShowPropertiesContextMenuItem;147 }148 149 140 private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) { 150 141 // Set image file format … … 177 168 Clipboard.SetDataObject(bmp); 178 169 } 179 180 private void propertiesToolStripMenuItem_Click(object sender, EventArgs e) {181 OnPropertiesClicked();182 }183 184 public event EventHandler PropertiesClicked;185 private void OnPropertiesClicked() {186 var handler = PropertiesClicked;187 if (handler != null) handler(this, EventArgs.Empty);188 }189 170 } 190 171 }
Note: See TracChangeset
for help on using the changeset viewer.