Free cookie consent management tool by TermsFeed Policy Generator

Changeset 4749


Ignore:
Timestamp:
11/09/10 01:06:58 (14 years ago)
Author:
swagner
Message:

Removed unnecessary context menu from DataTableView (#1237)

Location:
trunk/sources/HeuristicLab.Analysis.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.Designer.cs

    r4648 r4749  
    4545    /// </summary>
    4646    private void InitializeComponent() {
    47       this.components = new System.ComponentModel.Container();
    4847      System.Windows.Forms.DataVisualization.Charting.ChartArea defaultChartArea = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
    4948      System.Windows.Forms.DataVisualization.Charting.Legend defaultLegend = new System.Windows.Forms.DataVisualization.Charting.Legend();
     
    5150      System.Windows.Forms.DataVisualization.Charting.Title defaultTitle = new System.Windows.Forms.DataVisualization.Charting.Title();
    5251      this.chart = new HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart();
    53       this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components);
    54       this.exportChartToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
    55       this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
    5652      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit();
    5753      ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit();
    58       this.contextMenuStrip.SuspendLayout();
    5954      this.SuspendLayout();
    6055      //
     
    8277      defaultChartArea.Name = "Default";
    8378      this.chart.ChartAreas.Add(defaultChartArea);
    84       this.chart.ContextMenuStrip = this.contextMenuStrip;
    8579      defaultLegend.Alignment = System.Drawing.StringAlignment.Center;
    8680      defaultLegend.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top;
     
    10498      this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove);
    10599      //
    106       // contextMenuStrip
    107       //
    108       this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
    109             this.exportChartToolStripMenuItem});
    110       this.contextMenuStrip.Name = "contextMenuStrip";
    111       this.contextMenuStrip.Size = new System.Drawing.Size(153, 48);
    112       //
    113       // exportChartToolStripMenuItem
    114       //
    115       this.exportChartToolStripMenuItem.Name = "exportChartToolStripMenuItem";
    116       this.exportChartToolStripMenuItem.Size = new System.Drawing.Size(152, 22);
    117       this.exportChartToolStripMenuItem.Text = "Export chart...";
    118       this.exportChartToolStripMenuItem.Click += new System.EventHandler(this.exportChartToolStripMenuItem_Click);
    119       //
    120       // saveFileDialog
    121       //
    122       this.saveFileDialog.DefaultExt = "emf";
    123       this.saveFileDialog.Filter = "EMF Files|*.emf";
    124       //
    125100      // DataTableView
    126101      //
     
    137112      ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit();
    138113      ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit();
    139       this.contextMenuStrip.ResumeLayout(false);
    140114      this.ResumeLayout(false);
    141115      this.PerformLayout();
     
    146120
    147121    private HeuristicLab.Visualization.ChartControlsExtensions.EnhancedChart chart;
    148     private System.Windows.Forms.ContextMenuStrip contextMenuStrip;
    149     private System.Windows.Forms.ToolStripMenuItem exportChartToolStripMenuItem;
    150     private System.Windows.Forms.SaveFileDialog saveFileDialog;
    151122
    152123  }
  • trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs

    r4748 r4749  
    441441      }
    442442    }
    443 
    444443    #endregion
    445444
     
    447446      return double.IsNaN(x) || x < (double)decimal.MinValue || x > (double)decimal.MaxValue;
    448447    }
    449 
    450     private void exportChartToolStripMenuItem_Click(object sender, EventArgs e) {
    451       if (saveFileDialog.ShowDialog() == DialogResult.OK) {
    452         chart.SaveImage(saveFileDialog.FileName, ChartImageFormat.EmfDual);
    453       }
    454     }
    455448  }
    456449}
Note: See TracChangeset for help on using the changeset viewer.