Changeset 4655
- Timestamp:
- 10/29/10 13:02:49 (14 years ago)
- Location:
- trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionTreeChart.Designer.cs
r4651 r4655 49 49 this.contextMenuStrip = new System.Windows.Forms.ContextMenuStrip(this.components); 50 50 this.saveImageToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 51 this.saveFileDialog = new System.Windows.Forms.SaveFileDialog(); 51 52 this.contextMenuStrip.SuspendLayout(); 52 53 this.SuspendLayout(); … … 62 63 // 63 64 this.saveImageToolStripMenuItem.Name = "saveImageToolStripMenuItem"; 64 this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(1 52, 22);65 this.saveImageToolStripMenuItem.Size = new System.Drawing.Size(134, 22); 65 66 this.saveImageToolStripMenuItem.Text = "Save Image"; 66 67 this.saveImageToolStripMenuItem.Click += new System.EventHandler(this.saveImageToolStripMenuItem_Click); 68 // 69 // saveFileDialog 70 // 71 this.saveFileDialog.Filter = "\"Bitmap (*.bmp)|*.bmp|EMF (*.emf)|*.emf\""; 67 72 // 68 73 // SymbolicExpressionTreeChart … … 87 92 private System.Windows.Forms.ContextMenuStrip contextMenuStrip; 88 93 private System.Windows.Forms.ToolStripMenuItem saveImageToolStripMenuItem; 94 private System.Windows.Forms.SaveFileDialog saveFileDialog; 89 95 } 90 96 } -
trunk/sources/HeuristicLab.Encodings.SymbolicExpressionTreeEncoding.Views/3.3/SymbolicExpressionTreeChart.cs
r4651 r4655 292 292 #region save image 293 293 private void saveImageToolStripMenuItem_Click(object sender, EventArgs e) { 294 SaveFileDialog saveFileDialog = new SaveFileDialog();295 296 // Sets the current file name filter string, which determines297 // the choices that appear in the "Save as file type" or298 // "Files of type" box in the dialog box.299 saveFileDialog.Filter = "Bitmap (*.bmp)|*.bmp|EMF (*.emf)|*.emf";300 saveFileDialog.FilterIndex = 1;301 saveFileDialog.RestoreDirectory = true;302 303 294 if (saveFileDialog.ShowDialog() == DialogResult.OK) { 304 295 string filename = saveFileDialog.FileName.ToLower();
Note: See TracChangeset
for help on using the changeset viewer.