Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/29/10 12:55:50 (14 years ago)
Author:
mkommend
Message:

Reused SaveFileDialog and renamed menu item to "Export Chart" (ticket #1237).

File:
1 edited

Legend:

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

    r4646 r4654  
    9494
    9595      public double ChartX(double pixelX, int width) {
    96         return ChartStartPosition.X - (pixelX - PixelStartPosition.X) * 
     96        return ChartStartPosition.X - (pixelX - PixelStartPosition.X) *
    9797          (ChartArea.AxisX.ScaleView.ViewMaximum - ChartArea.AxisX.ScaleView.ViewMinimum) /
    9898            (width * ChartArea.Position.Width * ChartArea.InnerPlotPosition.Width / 100 / 100);
    9999      }
    100100      public double ChartY(double pixelY, int height) {
    101         return ChartStartPosition.Y + (pixelY - PixelStartPosition.Y) * 
     101        return ChartStartPosition.Y + (pixelY - PixelStartPosition.Y) *
    102102          (ChartArea.AxisY.ScaleView.ViewMaximum - ChartArea.AxisY.ScaleView.ViewMinimum) /
    103103            (height * ChartArea.Position.Height * ChartArea.InnerPlotPosition.Height / 100 / 100);
     
    138138    #endregion
    139139
    140     private void saveImageToolStripMenuItem_Click(object sender, System.EventArgs e) {
    141       SaveFileDialog saveFileDialog = new SaveFileDialog();
    142 
    143       // Sets the current file name filter string, which determines
    144       // the choices that appear in the "Save as file type" or
    145       // "Files of type" box in the dialog box.
    146       saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|JPEG (*.jpg)|*.jpg|EMF (*.emf)|*.emf|PNG (*.png)|*.png|GIF (*.gif)|*.gif|TIFF (*.tif)|*.tif";
    147       saveFileDialog.FilterIndex = 2;
    148       saveFileDialog.RestoreDirectory = true;
    149 
     140    private void exportChartToolStripMenuItem_Click(object sender, System.EventArgs e) {
    150141      // Set image file format
    151142      if (saveFileDialog.ShowDialog() == DialogResult.OK) {
Note: See TracChangeset for help on using the changeset viewer.