Changeset 4628 for trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
- Timestamp:
- 10/20/10 14:38:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs
r4621 r4628 26 26 namespace HeuristicLab.Visualization.ChartControlsExtensions { 27 27 public partial class EnhancedChart : Chart { 28 29 30 28 public EnhancedChart() 31 29 : base() { 30 InitializeComponent(); 32 31 EnableDoubleClickResetsZoom = true; 33 32 EnableMiddleClickPanning = true; … … 42 41 public void InitializeChartAreas() { 43 42 ChartAreas.Clear(); 44 ChartAreas.Add( GetDefaultChartArea("ChartArea"));43 ChartAreas.Add(CreateDefaultChartArea("ChartArea")); 45 44 } 46 45 47 public static ChartArea GetDefaultChartArea(string name) {46 public static ChartArea CreateDefaultChartArea(string name) { 48 47 ChartArea chartArea = new ChartArea(name); 49 48 chartArea.AxisX.MajorGrid.LineColor = SystemColors.GradientInactiveCaption; … … 86 85 87 86 private class PanningSupport { 88 89 87 public ChartArea ChartArea { get; private set; } 90 88 … … 150 148 // the choices that appear in the "Save as file type" or 151 149 // "Files of type" box in the dialog box. 152 saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png| SVG (*.svg)|*.svg|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif";150 saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif"; 153 151 saveFileDialog.FilterIndex = 2; 154 152 saveFileDialog.RestoreDirectory = true; … … 177 175 } 178 176 179 private void copyImageToClipboard ToolStripMenuItem_Click(object sender, System.EventArgs e) {177 private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, System.EventArgs e) { 180 178 System.IO.MemoryStream stream = new System.IO.MemoryStream(); 181 179 SaveImage(stream, System.Drawing.Imaging.ImageFormat.Bmp);
Note: See TracChangeset
for help on using the changeset viewer.