Changeset 4749
- Timestamp:
- 11/09/10 01:06:58 (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
r4648 r4749 45 45 /// </summary> 46 46 private void InitializeComponent() { 47 this.components = new System.ComponentModel.Container();48 47 System.Windows.Forms.DataVisualization.Charting.ChartArea defaultChartArea = new System.Windows.Forms.DataVisualization.Charting.ChartArea(); 49 48 System.Windows.Forms.DataVisualization.Charting.Legend defaultLegend = new System.Windows.Forms.DataVisualization.Charting.Legend(); … … 51 50 System.Windows.Forms.DataVisualization.Charting.Title defaultTitle = new System.Windows.Forms.DataVisualization.Charting.Title(); 52 51 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();56 52 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).BeginInit(); 57 53 ((System.ComponentModel.ISupportInitialize)(this.chart)).BeginInit(); 58 this.contextMenuStrip.SuspendLayout();59 54 this.SuspendLayout(); 60 55 // … … 82 77 defaultChartArea.Name = "Default"; 83 78 this.chart.ChartAreas.Add(defaultChartArea); 84 this.chart.ContextMenuStrip = this.contextMenuStrip;85 79 defaultLegend.Alignment = System.Drawing.StringAlignment.Center; 86 80 defaultLegend.Docking = System.Windows.Forms.DataVisualization.Charting.Docking.Top; … … 104 98 this.chart.MouseMove += new System.Windows.Forms.MouseEventHandler(this.chart_MouseMove); 105 99 // 106 // contextMenuStrip107 //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 // exportChartToolStripMenuItem114 //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 // saveFileDialog121 //122 this.saveFileDialog.DefaultExt = "emf";123 this.saveFileDialog.Filter = "EMF Files|*.emf";124 //125 100 // DataTableView 126 101 // … … 137 112 ((System.ComponentModel.ISupportInitialize)(this.errorProvider)).EndInit(); 138 113 ((System.ComponentModel.ISupportInitialize)(this.chart)).EndInit(); 139 this.contextMenuStrip.ResumeLayout(false);140 114 this.ResumeLayout(false); 141 115 this.PerformLayout(); … … 146 120 147 121 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;151 122 152 123 } -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r4748 r4749 441 441 } 442 442 } 443 444 443 #endregion 445 444 … … 447 446 return double.IsNaN(x) || x < (double)decimal.MinValue || x > (double)decimal.MaxValue; 448 447 } 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 }455 448 } 456 449 }
Note: See TracChangeset
for help on using the changeset viewer.