Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/20/10 14:38:17 (14 years ago)
Author:
mkommend
Message:

Minor changes in EnhancedChart (ticket #1237).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.ChartControlsExtensions/3.3/EnhancedChart.cs

    r4621 r4628  
    2626namespace HeuristicLab.Visualization.ChartControlsExtensions {
    2727  public partial class EnhancedChart : Chart {
    28 
    29 
    3028    public EnhancedChart()
    3129      : base() {
     30      InitializeComponent();
    3231      EnableDoubleClickResetsZoom = true;
    3332      EnableMiddleClickPanning = true;
     
    4241    public void InitializeChartAreas() {
    4342      ChartAreas.Clear();
    44       ChartAreas.Add(GetDefaultChartArea("ChartArea"));
     43      ChartAreas.Add(CreateDefaultChartArea("ChartArea"));
    4544    }
    4645
    47     public static ChartArea GetDefaultChartArea(string name) {
     46    public static ChartArea CreateDefaultChartArea(string name) {
    4847      ChartArea chartArea = new ChartArea(name);
    4948      chartArea.AxisX.MajorGrid.LineColor = SystemColors.GradientInactiveCaption;
     
    8685
    8786    private class PanningSupport {
    88 
    8987      public ChartArea ChartArea { get; private set; }
    9088
     
    150148      // the choices that appear in the "Save as file type" or
    151149      // "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";
    153151      saveFileDialog.FilterIndex = 2;
    154152      saveFileDialog.RestoreDirectory = true;
     
    177175    }
    178176
    179     private void copyImageToClipboardToolStripMenuItem_Click(object sender, System.EventArgs e) {
     177    private void copyImageToClipboardBitmapToolStripMenuItem_Click(object sender, System.EventArgs e) {
    180178      System.IO.MemoryStream stream = new System.IO.MemoryStream();
    181179      SaveImage(stream, System.Drawing.Imaging.ImageFormat.Bmp);
Note: See TracChangeset for help on using the changeset viewer.