Changeset 4142
- Timestamp:
- 08/04/10 11:25:14 (14 years ago)
- 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
r3703 r4142 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container(); 47 48 System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 48 49 System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend(); 49 50 System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series(); 50 51 this.chart = new System.Windows.Forms.DataVisualization.Charting.Chart(); 52 this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); 53 this.exportChartToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 54 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 51 55 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 52 56 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 57 this.contextMenuStrip.SuspendLayout(); 53 58 this.SuspendLayout(); 54 59 // … … 76 81 chartArea1.Name = "ChartArea1"; 77 82 this.chart.ChartAreas.Add(chartArea1); 83 this.chart.ContextMenuStrip = this.contextMenuStrip; 78 84 legend1.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; 79 85 legend1.Name = "Legend1"; … … 88 94 this.chart.TabIndex = 4; 89 95 this.chart.Text = "chart1"; 96 this.chart.CustomizeLegend += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.CustomizeLegendEventArgs>(this.chart_CustomizeLegend); 97 this.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDown); 90 98 this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove); 91 this.chart.MouseDown += new System.Windows.Forms.MouseEventHandler(this.chart_MouseDown); 92 this.chart.CustomizeLegend += new System.EventHandler<System.Windows.Forms.DataVisualization.Charting.CustomizeLegendEventArgs>(this.chart_CustomizeLegend); 99 // 100 // contextMenuStrip 101 // 102 this.contextMenuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { 103 this.exportChartToolStripMenuItem}); 104 this.contextMenuStrip.Name = "contextMenuStrip"; 105 this.contextMenuStrip.Size = new System.Drawing.Size(153, 48); 106 // 107 // exportChartToolStripMenuItem 108 // 109 this.exportChartToolStripMenuItem.Name = "exportChartToolStripMenuItem"; 110 this.exportChartToolStripMenuItem.Size = new System.Drawing.Size(152, 22); 111 this.exportChartToolStripMenuItem.Text = "Export chart..."; 112 this.exportChartToolStripMenuItem.Click += new System.EventHandler(this.exportChartToolStripMenuItem_Click); 113 // 114 // saveFileDialog 115 // 116 this.saveFileDialog.DefaultExt = "emf"; 117 this.saveFileDialog.Filter = "EMF Files|*.emf"; 93 118 // 94 119 // DataTableView … … 106 131 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 107 132 ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit(); 133 this.contextMenuStrip.ResumeLayout(false); 108 134 this.ResumeLayout(false); 109 135 this.PerformLayout(); … … 114 140 115 141 private System.Windows.Forms.DataVisualization.Charting.Chart chart; 142 private System.Windows.Forms.ContextMenuStrip contextMenuStrip; 143 private System.Windows.Forms.ToolStripMenuItem exportChartToolStripMenuItem; 144 private System.Windows.Forms.SaveFileDialog saveFileDialog; 116 145 117 146 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r4068 r4142 395 395 return double.IsNaN(x) || x < (double)decimal.MinValue || x > (double)decimal.MaxValue; 396 396 } 397 398 private void exportChartToolStripMenuItem_Click(object sender, EventArgs e) { 399 if (saveFileDialog.ShowDialog() == DialogResult.OK) { 400 chart.SaveImage(saveFileDialog.FileName, ChartImageFormat.EmfDual); 401 } 402 } 397 403 } 398 404 }
Note: See TracChangeset
for help on using the changeset viewer.