/// <summary>
 /// The default constructor.
 /// </summary>
 public GraphPrintDocument(GraphControl graph)
 {
     this.graph = graph;
 }
Beispiel #2
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
			this.mainMenu = new System.Windows.Forms.MainMenu();
			this.fileItem = new System.Windows.Forms.MenuItem();
			this.newItem = new System.Windows.Forms.MenuItem();
			this.openItem = new System.Windows.Forms.MenuItem();
			this.menuItem8 = new System.Windows.Forms.MenuItem();
			this.saveItem = new System.Windows.Forms.MenuItem();
			this.saveAsItem = new System.Windows.Forms.MenuItem();
			this.bitmapItem = new System.Windows.Forms.MenuItem();
			this.menuItem5 = new System.Windows.Forms.MenuItem();
			this.pageSetupItem = new System.Windows.Forms.MenuItem();
			this.printPreviewItem = new System.Windows.Forms.MenuItem();
			this.printItem = new System.Windows.Forms.MenuItem();
			this.menuItem6 = new System.Windows.Forms.MenuItem();
			this.exitItem = new System.Windows.Forms.MenuItem();
			this.editItem = new System.Windows.Forms.MenuItem();
			this.addFunctionItem = new System.Windows.Forms.MenuItem();
			this.addDataItem = new System.Windows.Forms.MenuItem();
			this.editLibraryItem = new System.Windows.Forms.MenuItem();
			this.viewItem = new System.Windows.Forms.MenuItem();
			this.rangeItem = new System.Windows.Forms.MenuItem();
			this.optionItem = new System.Windows.Forms.MenuItem();
			this.compilerItem = new System.Windows.Forms.MenuItem();
			this.fitMenu = new System.Windows.Forms.MenuItem();
			this.marquardtItem = new System.Windows.Forms.MenuItem();
			this.helpMenu = new System.Windows.Forms.MenuItem();
			this.helpContents = new System.Windows.Forms.MenuItem();
			this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
			this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
			this.newFileDialog = new System.Windows.Forms.SaveFileDialog();
			this.printDialog = new System.Windows.Forms.PrintDialog();
			this.printPreviewDialog = new System.Windows.Forms.PrintPreviewDialog();
			this.pageSetupDialog = new System.Windows.Forms.PageSetupDialog();
			this.statusBar = new System.Windows.Forms.StatusBar();
			this.progressBar = new System.Windows.Forms.ProgressBar();
			this.graph = new FPlotLibrary.GraphControl();
			this.xLabel = new System.Windows.Forms.TextBox();
			this.yLabel = new System.Windows.Forms.TextBox();
			this.helpProvider = new System.Windows.Forms.HelpProvider();
			this.helpAbout = new System.Windows.Forms.MenuItem();
			this.SuspendLayout();
			// 
			// mainMenu
			// 
			this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																						 this.fileItem,
																																						 this.editItem,
																																						 this.viewItem,
																																						 this.fitMenu,
																																						 this.helpMenu});
			// 
			// fileItem
			// 
			this.fileItem.Index = 0;
			this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																						 this.newItem,
																																						 this.openItem,
																																						 this.menuItem8,
																																						 this.saveItem,
																																						 this.saveAsItem,
																																						 this.bitmapItem,
																																						 this.menuItem5,
																																						 this.pageSetupItem,
																																						 this.printPreviewItem,
																																						 this.printItem,
																																						 this.menuItem6,
																																						 this.exitItem});
			this.fileItem.Text = "&File";
			// 
			// newItem
			// 
			this.newItem.Index = 0;
			this.newItem.Text = "&New...";
			this.newItem.Click += new System.EventHandler(this.newItem_Click);
			// 
			// openItem
			// 
			this.openItem.Index = 1;
			this.openItem.Text = "&Open...";
			this.openItem.Click += new System.EventHandler(this.openItem_Click);
			// 
			// menuItem8
			// 
			this.menuItem8.Index = 2;
			this.menuItem8.Text = "-";
			// 
			// saveItem
			// 
			this.saveItem.Index = 3;
			this.saveItem.Text = "&Save";
			this.saveItem.Click += new System.EventHandler(this.saveItem_Click);
			// 
			// saveAsItem
			// 
			this.saveAsItem.Index = 4;
			this.saveAsItem.Text = "Save &as...";
			this.saveAsItem.Click += new System.EventHandler(this.saveAsItem_Click);
			// 
			// bitmapItem
			// 
			this.bitmapItem.Index = 5;
			this.bitmapItem.Text = "Save as &Image...";
			this.bitmapItem.Click += new System.EventHandler(this.bitmapClick);
			// 
			// menuItem5
			// 
			this.menuItem5.Index = 6;
			this.menuItem5.Text = "-";
			// 
			// pageSetupItem
			// 
			this.pageSetupItem.Index = 7;
			this.pageSetupItem.Text = "Page set&up...";
			this.pageSetupItem.Click += new System.EventHandler(this.pageSetupClick);
			// 
			// printPreviewItem
			// 
			this.printPreviewItem.Index = 8;
			this.printPreviewItem.Text = "Print pre&view...";
			this.printPreviewItem.Click += new System.EventHandler(this.printPreviewClick);
			// 
			// printItem
			// 
			this.printItem.Index = 9;
			this.printItem.Text = "&Print...";
			this.printItem.Click += new System.EventHandler(this.printClick);
			// 
			// menuItem6
			// 
			this.menuItem6.Index = 10;
			this.menuItem6.Text = "-";
			// 
			// exitItem
			// 
			this.exitItem.Index = 11;
			this.exitItem.Text = "E&xit";
			this.exitItem.Click += new System.EventHandler(this.exitClick);
			// 
			// editItem
			// 
			this.editItem.Index = 1;
			this.editItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																						 this.addFunctionItem,
																																						 this.addDataItem,
																																						 this.editLibraryItem});
			this.editItem.Text = "&Edit";
			// 
			// addFunctionItem
			// 
			this.addFunctionItem.Index = 0;
			this.addFunctionItem.Text = "Add &function...";
			this.addFunctionItem.Click += new System.EventHandler(this.addFunctionClick);
			// 
			// addDataItem
			// 
			this.addDataItem.Index = 1;
			this.addDataItem.Text = "Add &data...";
			this.addDataItem.Click += new System.EventHandler(this.dataClick);
			// 
			// editLibraryItem
			// 
			this.editLibraryItem.Index = 2;
			this.editLibraryItem.Text = "&Edit library...";
			this.editLibraryItem.Click += new System.EventHandler(this.libraryClick);
			// 
			// viewItem
			// 
			this.viewItem.Index = 2;
			this.viewItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																						 this.rangeItem,
																																						 this.optionItem,
																																						 this.compilerItem});
			this.viewItem.Text = "&Options";
			// 
			// rangeItem
			// 
			this.rangeItem.Index = 0;
			this.rangeItem.Text = "Set view &range...";
			this.rangeItem.Click += new System.EventHandler(this.setRangeClick);
			// 
			// optionItem
			// 
			this.optionItem.Index = 1;
			this.optionItem.Text = "&Options...";
			this.optionItem.Click += new System.EventHandler(this.optionItem_Click);
			// 
			// compilerItem
			// 
			this.compilerItem.Index = 2;
			this.compilerItem.Text = "&Compiler options...";
			this.compilerItem.Click += new System.EventHandler(this.compilerClick);
			// 
			// fitMenu
			// 
			this.fitMenu.Index = 3;
			this.fitMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																						this.marquardtItem});
			this.fitMenu.Text = "Fit &data";
			// 
			// marquardtItem
			// 
			this.marquardtItem.Index = 0;
			this.marquardtItem.Text = "&Fit...";
			this.marquardtItem.Click += new System.EventHandler(this.marquardtClick);
			// 
			// helpMenu
			// 
			this.helpMenu.Index = 4;
			this.helpMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
																																						 this.helpContents,
																																						 this.helpAbout});
			this.helpMenu.Text = "&Help";
			// 
			// helpContents
			// 
			this.helpContents.Index = 0;
			this.helpContents.Text = "&Contents...";
			this.helpContents.Click += new System.EventHandler(this.helpContentsClick);
			// 
			// openFileDialog
			// 
			this.openFileDialog.DefaultExt = "*.fplot";
			this.openFileDialog.Filter = "Plot files (*.fplot)|*.fplot";
			this.openFileDialog.Title = "Open Function";
			// 
			// saveFileDialog
			// 
			this.saveFileDialog.DefaultExt = "*.fplot";
			this.saveFileDialog.Filter = "Plot files (*.fplot)|*.fplot";
			this.saveFileDialog.Title = "Save Function";
			// 
			// newFileDialog
			// 
			this.newFileDialog.DefaultExt = "*.fplot";
			this.newFileDialog.Filter = "Function files (*.fplot)|*.fplot";
			this.newFileDialog.Title = "New Function";
			// 
			// printPreviewDialog
			// 
			this.printPreviewDialog.AutoScrollMargin = new System.Drawing.Size(0, 0);
			this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
			this.printPreviewDialog.ClientSize = new System.Drawing.Size(400, 300);
			this.printPreviewDialog.Enabled = true;
			this.printPreviewDialog.Icon = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
			this.printPreviewDialog.Location = new System.Drawing.Point(633, 17);
			this.printPreviewDialog.MinimumSize = new System.Drawing.Size(375, 250);
			this.printPreviewDialog.Name = "printPreviewDialog";
			this.printPreviewDialog.TransparencyKey = System.Drawing.Color.Empty;
			this.printPreviewDialog.Visible = false;
			// 
			// statusBar
			// 
			this.statusBar.Location = new System.Drawing.Point(0, 418);
			this.statusBar.Name = "statusBar";
			this.statusBar.Size = new System.Drawing.Size(688, 22);
			this.statusBar.TabIndex = 0;
			// 
			// progressBar
			// 
			this.progressBar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.progressBar.Location = new System.Drawing.Point(537, 424);
			this.progressBar.Name = "progressBar";
			this.progressBar.Size = new System.Drawing.Size(136, 16);
			this.progressBar.Step = 1;
			this.progressBar.TabIndex = 1;
			// 
			// graph
			// 
			this.graph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.graph.BackColor = System.Drawing.Color.White;
			this.graph.Border = true;
			this.graph.Cursor = System.Windows.Forms.Cursors.Cross;
			this.graph.FixYtoX = false;
			this.graph.Legend = false;
			this.graph.Location = new System.Drawing.Point(0, 0);
			this.graph.Name = "graph";
			this.graph.Size = new System.Drawing.Size(688, 419);
			this.graph.TabIndex = 8;
			this.graph.x0 = -1;
			this.graph.x1 = 1;
			this.graph.xAxis = false;
			this.graph.xGrid = false;
			this.graph.xRaster = true;
			this.graph.xScale = true;
			this.graph.y0 = -1;
			this.graph.y1 = 1;
			this.graph.yAxis = false;
			this.graph.yGrid = false;
			this.graph.yRaster = true;
			this.graph.yScale = true;
			this.graph.z0 = -1;
			this.graph.z1 = 1;
			this.graph.zScale = true;
			// 
			// xLabel
			// 
			this.xLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.xLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.xLabel.Location = new System.Drawing.Point(0, 423);
			this.xLabel.Name = "xLabel";
			this.xLabel.ReadOnly = true;
			this.xLabel.Size = new System.Drawing.Size(133, 13);
			this.xLabel.TabIndex = 9;
			this.xLabel.Text = "x = 0";
			this.xLabel.WordWrap = false;
			// 
			// yLabel
			// 
			this.yLabel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
			this.yLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
			this.yLabel.Location = new System.Drawing.Point(140, 423);
			this.yLabel.Name = "yLabel";
			this.yLabel.ReadOnly = true;
			this.yLabel.Size = new System.Drawing.Size(133, 13);
			this.yLabel.TabIndex = 10;
			this.yLabel.Text = "y = 0";
			this.yLabel.WordWrap = false;
			// 
			// helpAbout
			// 
			this.helpAbout.Index = 1;
			this.helpAbout.Text = "&About...";
			this.helpAbout.Click += new System.EventHandler(this.helpAbout_Click);
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(688, 440);
			this.Controls.Add(this.yLabel);
			this.Controls.Add(this.xLabel);
			this.Controls.Add(this.graph);
			this.Controls.Add(this.progressBar);
			this.Controls.Add(this.statusBar);
			this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
			this.Menu = this.mainMenu;
			this.MinimumSize = new System.Drawing.Size(416, 152);
			this.Name = "MainForm";
			this.Text = "Function Plotter";
			this.ResumeLayout(false);

		}
Beispiel #3
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(MainForm));
     this.mainMenu           = new System.Windows.Forms.MainMenu();
     this.fileItem           = new System.Windows.Forms.MenuItem();
     this.newItem            = new System.Windows.Forms.MenuItem();
     this.openItem           = new System.Windows.Forms.MenuItem();
     this.menuItem8          = new System.Windows.Forms.MenuItem();
     this.saveItem           = new System.Windows.Forms.MenuItem();
     this.saveAsItem         = new System.Windows.Forms.MenuItem();
     this.bitmapItem         = new System.Windows.Forms.MenuItem();
     this.menuItem5          = new System.Windows.Forms.MenuItem();
     this.pageSetupItem      = new System.Windows.Forms.MenuItem();
     this.printPreviewItem   = new System.Windows.Forms.MenuItem();
     this.printItem          = new System.Windows.Forms.MenuItem();
     this.menuItem6          = new System.Windows.Forms.MenuItem();
     this.exitItem           = new System.Windows.Forms.MenuItem();
     this.editItem           = new System.Windows.Forms.MenuItem();
     this.addFunctionItem    = new System.Windows.Forms.MenuItem();
     this.addDataItem        = new System.Windows.Forms.MenuItem();
     this.editLibraryItem    = new System.Windows.Forms.MenuItem();
     this.viewItem           = new System.Windows.Forms.MenuItem();
     this.rangeItem          = new System.Windows.Forms.MenuItem();
     this.optionItem         = new System.Windows.Forms.MenuItem();
     this.compilerItem       = new System.Windows.Forms.MenuItem();
     this.fitMenu            = new System.Windows.Forms.MenuItem();
     this.marquardtItem      = new System.Windows.Forms.MenuItem();
     this.helpMenu           = new System.Windows.Forms.MenuItem();
     this.helpContents       = new System.Windows.Forms.MenuItem();
     this.openFileDialog     = new System.Windows.Forms.OpenFileDialog();
     this.saveFileDialog     = new System.Windows.Forms.SaveFileDialog();
     this.newFileDialog      = new System.Windows.Forms.SaveFileDialog();
     this.printDialog        = new System.Windows.Forms.PrintDialog();
     this.printPreviewDialog = new System.Windows.Forms.PrintPreviewDialog();
     this.pageSetupDialog    = new System.Windows.Forms.PageSetupDialog();
     this.statusBar          = new System.Windows.Forms.StatusBar();
     this.progressBar        = new System.Windows.Forms.ProgressBar();
     this.graph        = new FPlotLibrary.GraphControl();
     this.xLabel       = new System.Windows.Forms.TextBox();
     this.yLabel       = new System.Windows.Forms.TextBox();
     this.helpProvider = new System.Windows.Forms.HelpProvider();
     this.helpAbout    = new System.Windows.Forms.MenuItem();
     this.SuspendLayout();
     //
     // mainMenu
     //
     this.mainMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.fileItem,
         this.editItem,
         this.viewItem,
         this.fitMenu,
         this.helpMenu
     });
     //
     // fileItem
     //
     this.fileItem.Index = 0;
     this.fileItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.newItem,
         this.openItem,
         this.menuItem8,
         this.saveItem,
         this.saveAsItem,
         this.bitmapItem,
         this.menuItem5,
         this.pageSetupItem,
         this.printPreviewItem,
         this.printItem,
         this.menuItem6,
         this.exitItem
     });
     this.fileItem.Text = "&File";
     //
     // newItem
     //
     this.newItem.Index  = 0;
     this.newItem.Text   = "&New...";
     this.newItem.Click += new System.EventHandler(this.newItem_Click);
     //
     // openItem
     //
     this.openItem.Index  = 1;
     this.openItem.Text   = "&Open...";
     this.openItem.Click += new System.EventHandler(this.openItem_Click);
     //
     // menuItem8
     //
     this.menuItem8.Index = 2;
     this.menuItem8.Text  = "-";
     //
     // saveItem
     //
     this.saveItem.Index  = 3;
     this.saveItem.Text   = "&Save";
     this.saveItem.Click += new System.EventHandler(this.saveItem_Click);
     //
     // saveAsItem
     //
     this.saveAsItem.Index  = 4;
     this.saveAsItem.Text   = "Save &as...";
     this.saveAsItem.Click += new System.EventHandler(this.saveAsItem_Click);
     //
     // bitmapItem
     //
     this.bitmapItem.Index  = 5;
     this.bitmapItem.Text   = "Save as &Image...";
     this.bitmapItem.Click += new System.EventHandler(this.bitmapClick);
     //
     // menuItem5
     //
     this.menuItem5.Index = 6;
     this.menuItem5.Text  = "-";
     //
     // pageSetupItem
     //
     this.pageSetupItem.Index  = 7;
     this.pageSetupItem.Text   = "Page set&up...";
     this.pageSetupItem.Click += new System.EventHandler(this.pageSetupClick);
     //
     // printPreviewItem
     //
     this.printPreviewItem.Index  = 8;
     this.printPreviewItem.Text   = "Print pre&view...";
     this.printPreviewItem.Click += new System.EventHandler(this.printPreviewClick);
     //
     // printItem
     //
     this.printItem.Index  = 9;
     this.printItem.Text   = "&Print...";
     this.printItem.Click += new System.EventHandler(this.printClick);
     //
     // menuItem6
     //
     this.menuItem6.Index = 10;
     this.menuItem6.Text  = "-";
     //
     // exitItem
     //
     this.exitItem.Index  = 11;
     this.exitItem.Text   = "E&xit";
     this.exitItem.Click += new System.EventHandler(this.exitClick);
     //
     // editItem
     //
     this.editItem.Index = 1;
     this.editItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.addFunctionItem,
         this.addDataItem,
         this.editLibraryItem
     });
     this.editItem.Text = "&Edit";
     //
     // addFunctionItem
     //
     this.addFunctionItem.Index  = 0;
     this.addFunctionItem.Text   = "Add &function...";
     this.addFunctionItem.Click += new System.EventHandler(this.addFunctionClick);
     //
     // addDataItem
     //
     this.addDataItem.Index  = 1;
     this.addDataItem.Text   = "Add &data...";
     this.addDataItem.Click += new System.EventHandler(this.dataClick);
     //
     // editLibraryItem
     //
     this.editLibraryItem.Index  = 2;
     this.editLibraryItem.Text   = "&Edit library...";
     this.editLibraryItem.Click += new System.EventHandler(this.libraryClick);
     //
     // viewItem
     //
     this.viewItem.Index = 2;
     this.viewItem.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.rangeItem,
         this.optionItem,
         this.compilerItem
     });
     this.viewItem.Text = "&Options";
     //
     // rangeItem
     //
     this.rangeItem.Index  = 0;
     this.rangeItem.Text   = "Set view &range...";
     this.rangeItem.Click += new System.EventHandler(this.setRangeClick);
     //
     // optionItem
     //
     this.optionItem.Index  = 1;
     this.optionItem.Text   = "&Options...";
     this.optionItem.Click += new System.EventHandler(this.optionItem_Click);
     //
     // compilerItem
     //
     this.compilerItem.Index  = 2;
     this.compilerItem.Text   = "&Compiler options...";
     this.compilerItem.Click += new System.EventHandler(this.compilerClick);
     //
     // fitMenu
     //
     this.fitMenu.Index = 3;
     this.fitMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.marquardtItem
     });
     this.fitMenu.Text = "Fit &data";
     //
     // marquardtItem
     //
     this.marquardtItem.Index  = 0;
     this.marquardtItem.Text   = "&Fit...";
     this.marquardtItem.Click += new System.EventHandler(this.marquardtClick);
     //
     // helpMenu
     //
     this.helpMenu.Index = 4;
     this.helpMenu.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] {
         this.helpContents,
         this.helpAbout
     });
     this.helpMenu.Text = "&Help";
     //
     // helpContents
     //
     this.helpContents.Index  = 0;
     this.helpContents.Text   = "&Contents...";
     this.helpContents.Click += new System.EventHandler(this.helpContentsClick);
     //
     // openFileDialog
     //
     this.openFileDialog.DefaultExt = "*.fplot";
     this.openFileDialog.Filter     = "Plot files (*.fplot)|*.fplot";
     this.openFileDialog.Title      = "Open Function";
     //
     // saveFileDialog
     //
     this.saveFileDialog.DefaultExt = "*.fplot";
     this.saveFileDialog.Filter     = "Plot files (*.fplot)|*.fplot";
     this.saveFileDialog.Title      = "Save Function";
     //
     // newFileDialog
     //
     this.newFileDialog.DefaultExt = "*.fplot";
     this.newFileDialog.Filter     = "Function files (*.fplot)|*.fplot";
     this.newFileDialog.Title      = "New Function";
     //
     // printPreviewDialog
     //
     this.printPreviewDialog.AutoScrollMargin  = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.AutoScrollMinSize = new System.Drawing.Size(0, 0);
     this.printPreviewDialog.ClientSize        = new System.Drawing.Size(400, 300);
     this.printPreviewDialog.Enabled           = true;
     this.printPreviewDialog.Icon            = ((System.Drawing.Icon)(resources.GetObject("printPreviewDialog.Icon")));
     this.printPreviewDialog.Location        = new System.Drawing.Point(633, 17);
     this.printPreviewDialog.MinimumSize     = new System.Drawing.Size(375, 250);
     this.printPreviewDialog.Name            = "printPreviewDialog";
     this.printPreviewDialog.TransparencyKey = System.Drawing.Color.Empty;
     this.printPreviewDialog.Visible         = false;
     //
     // statusBar
     //
     this.statusBar.Location = new System.Drawing.Point(0, 418);
     this.statusBar.Name     = "statusBar";
     this.statusBar.Size     = new System.Drawing.Size(688, 22);
     this.statusBar.TabIndex = 0;
     //
     // progressBar
     //
     this.progressBar.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar.Location = new System.Drawing.Point(537, 424);
     this.progressBar.Name     = "progressBar";
     this.progressBar.Size     = new System.Drawing.Size(136, 16);
     this.progressBar.Step     = 1;
     this.progressBar.TabIndex = 1;
     //
     // graph
     //
     this.graph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.graph.BackColor = System.Drawing.Color.White;
     this.graph.Border    = true;
     this.graph.Cursor    = System.Windows.Forms.Cursors.Cross;
     this.graph.FixYtoX   = false;
     this.graph.Legend    = false;
     this.graph.Location  = new System.Drawing.Point(0, 0);
     this.graph.Name      = "graph";
     this.graph.Size      = new System.Drawing.Size(688, 419);
     this.graph.TabIndex  = 8;
     this.graph.x0        = -1;
     this.graph.x1        = 1;
     this.graph.xAxis     = false;
     this.graph.xGrid     = false;
     this.graph.xRaster   = true;
     this.graph.xScale    = true;
     this.graph.y0        = -1;
     this.graph.y1        = 1;
     this.graph.yAxis     = false;
     this.graph.yGrid     = false;
     this.graph.yRaster   = true;
     this.graph.yScale    = true;
     this.graph.z0        = -1;
     this.graph.z1        = 1;
     this.graph.zScale    = true;
     //
     // xLabel
     //
     this.xLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.xLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.xLabel.Location    = new System.Drawing.Point(0, 423);
     this.xLabel.Name        = "xLabel";
     this.xLabel.ReadOnly    = true;
     this.xLabel.Size        = new System.Drawing.Size(133, 13);
     this.xLabel.TabIndex    = 9;
     this.xLabel.Text        = "x = 0";
     this.xLabel.WordWrap    = false;
     //
     // yLabel
     //
     this.yLabel.Anchor      = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
     this.yLabel.BorderStyle = System.Windows.Forms.BorderStyle.None;
     this.yLabel.Location    = new System.Drawing.Point(140, 423);
     this.yLabel.Name        = "yLabel";
     this.yLabel.ReadOnly    = true;
     this.yLabel.Size        = new System.Drawing.Size(133, 13);
     this.yLabel.TabIndex    = 10;
     this.yLabel.Text        = "y = 0";
     this.yLabel.WordWrap    = false;
     //
     // helpAbout
     //
     this.helpAbout.Index  = 1;
     this.helpAbout.Text   = "&About...";
     this.helpAbout.Click += new System.EventHandler(this.helpAbout_Click);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(688, 440);
     this.Controls.Add(this.yLabel);
     this.Controls.Add(this.xLabel);
     this.Controls.Add(this.graph);
     this.Controls.Add(this.progressBar);
     this.Controls.Add(this.statusBar);
     this.Icon        = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Menu        = this.mainMenu;
     this.MinimumSize = new System.Drawing.Size(416, 152);
     this.Name        = "MainForm";
     this.Text        = "Function Plotter";
     this.ResumeLayout(false);
 }
Beispiel #4
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent() {
			this.graph = new FPlotLibrary.GraphControl();
			this.button1 = new System.Windows.Forms.Button();
			this.options = new System.Windows.Forms.Button();
			this.sin = new System.Windows.Forms.Button();
			this.cos = new System.Windows.Forms.Button();
			this.data = new System.Windows.Forms.Button();
			this.button3 = new System.Windows.Forms.Button();
			this.button4 = new System.Windows.Forms.Button();
			this.progressBar1 = new System.Windows.Forms.ProgressBar();
			this.loadwav = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// graph
			// 
			this.graph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
				| System.Windows.Forms.AnchorStyles.Left) 
				| System.Windows.Forms.AnchorStyles.Right)));
			this.graph.BackColor = System.Drawing.Color.White;
			this.graph.Border = true;
			this.graph.Cursor = System.Windows.Forms.Cursors.Cross;
			this.graph.FixYtoX = false;
			this.graph.Legend = false;
			this.graph.Location = new System.Drawing.Point(0, 0);
			this.graph.Name = "graph";
			this.graph.Size = new System.Drawing.Size(312, 328);
			this.graph.TabIndex = 0;
			this.graph.Text = "graph";
			this.graph.x0 = -4;
			this.graph.x1 = 4;
			this.graph.xAxis = false;
			this.graph.xGrid = true;
			this.graph.xRaster = true;
			this.graph.xScale = true;
			this.graph.y0 = -4.1973373870943052;
			this.graph.y1 = 4.2374452216013472;
			this.graph.yAxis = false;
			this.graph.yGrid = true;
			this.graph.yRaster = true;
			this.graph.yScale = true;
			this.graph.z0 = 0;
			this.graph.z1 = 20;
			this.graph.zScale = true;
			// 
			// button1
			// 
			this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.button1.Location = new System.Drawing.Point(328, 264);
			this.button1.Name = "button1";
			this.button1.TabIndex = 1;
			this.button1.Text = "Quit";
			this.button1.Click += new System.EventHandler(this.quitClick);
			// 
			// options
			// 
			this.options.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.options.Location = new System.Drawing.Point(328, 24);
			this.options.Name = "options";
			this.options.Size = new System.Drawing.Size(104, 24);
			this.options.TabIndex = 2;
			this.options.Text = "Options...";
			this.options.Click += new System.EventHandler(this.optionsClick);
			// 
			// sin
			// 
			this.sin.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.sin.Location = new System.Drawing.Point(328, 56);
			this.sin.Name = "sin";
			this.sin.Size = new System.Drawing.Size(104, 23);
			this.sin.TabIndex = 3;
			this.sin.Text = "Add sin(x)...";
			this.sin.Click += new System.EventHandler(this.sinClick);
			// 
			// cos
			// 
			this.cos.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.cos.Location = new System.Drawing.Point(328, 88);
			this.cos.Name = "cos";
			this.cos.Size = new System.Drawing.Size(104, 24);
			this.cos.TabIndex = 4;
			this.cos.Text = "Add cos(x)...";
			this.cos.Click += new System.EventHandler(this.cosClick);
			// 
			// data
			// 
			this.data.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.data.Location = new System.Drawing.Point(328, 184);
			this.data.Name = "data";
			this.data.Size = new System.Drawing.Size(104, 23);
			this.data.TabIndex = 5;
			this.data.Text = "Load ASCII data...";
			this.data.Click += new System.EventHandler(this.asciiClick);
			// 
			// button3
			// 
			this.button3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.button3.Location = new System.Drawing.Point(328, 120);
			this.button3.Name = "button3";
			this.button3.Size = new System.Drawing.Size(104, 24);
			this.button3.TabIndex = 7;
			this.button3.Text = "Add gaussian...";
			this.button3.Click += new System.EventHandler(this.gaussClick);
			// 
			// button4
			// 
			this.button4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.button4.Location = new System.Drawing.Point(328, 152);
			this.button4.Name = "button4";
			this.button4.Size = new System.Drawing.Size(104, 24);
			this.button4.TabIndex = 8;
			this.button4.Text = "Add Mandelbrot...";
			this.button4.Click += new System.EventHandler(this.mandelbrotClick);
			// 
			// progressBar1
			// 
			this.progressBar1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
			this.progressBar1.Location = new System.Drawing.Point(328, 304);
			this.progressBar1.Name = "progressBar1";
			this.progressBar1.Size = new System.Drawing.Size(104, 16);
			this.progressBar1.TabIndex = 9;
			// 
			// loadwav
			// 
			this.loadwav.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
			this.loadwav.Location = new System.Drawing.Point(328, 216);
			this.loadwav.Name = "loadwav";
			this.loadwav.Size = new System.Drawing.Size(104, 23);
			this.loadwav.TabIndex = 10;
			this.loadwav.Text = "Load WAV file...";
			this.loadwav.Click += new System.EventHandler(this.wavClick);
			// 
			// MainForm
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(440, 325);
			this.Controls.Add(this.loadwav);
			this.Controls.Add(this.progressBar1);
			this.Controls.Add(this.button4);
			this.Controls.Add(this.button3);
			this.Controls.Add(this.data);
			this.Controls.Add(this.cos);
			this.Controls.Add(this.sin);
			this.Controls.Add(this.options);
			this.Controls.Add(this.button1);
			this.Controls.Add(this.graph);
			this.Name = "MainForm";
			this.Text = "FPlot Demo";
			this.ResumeLayout(false);

		}
Beispiel #5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.graph        = new FPlotLibrary.GraphControl();
     this.button1      = new System.Windows.Forms.Button();
     this.options      = new System.Windows.Forms.Button();
     this.sin          = new System.Windows.Forms.Button();
     this.cos          = new System.Windows.Forms.Button();
     this.data         = new System.Windows.Forms.Button();
     this.button3      = new System.Windows.Forms.Button();
     this.button4      = new System.Windows.Forms.Button();
     this.progressBar1 = new System.Windows.Forms.ProgressBar();
     this.loadwav      = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // graph
     //
     this.graph.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                | System.Windows.Forms.AnchorStyles.Left)
                                                               | System.Windows.Forms.AnchorStyles.Right)));
     this.graph.BackColor = System.Drawing.Color.White;
     this.graph.Border    = true;
     this.graph.Cursor    = System.Windows.Forms.Cursors.Cross;
     this.graph.FixYtoX   = false;
     this.graph.Legend    = false;
     this.graph.Location  = new System.Drawing.Point(0, 0);
     this.graph.Name      = "graph";
     this.graph.Size      = new System.Drawing.Size(312, 328);
     this.graph.TabIndex  = 0;
     this.graph.Text      = "graph";
     this.graph.x0        = -4;
     this.graph.x1        = 4;
     this.graph.xAxis     = false;
     this.graph.xGrid     = true;
     this.graph.xRaster   = true;
     this.graph.xScale    = true;
     this.graph.y0        = -4.1973373870943052;
     this.graph.y1        = 4.2374452216013472;
     this.graph.yAxis     = false;
     this.graph.yGrid     = true;
     this.graph.yRaster   = true;
     this.graph.yScale    = true;
     this.graph.z0        = 0;
     this.graph.z1        = 20;
     this.graph.zScale    = true;
     //
     // button1
     //
     this.button1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.button1.Location = new System.Drawing.Point(328, 264);
     this.button1.Name     = "button1";
     this.button1.TabIndex = 1;
     this.button1.Text     = "Quit";
     this.button1.Click   += new System.EventHandler(this.quitClick);
     //
     // options
     //
     this.options.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.options.Location = new System.Drawing.Point(328, 24);
     this.options.Name     = "options";
     this.options.Size     = new System.Drawing.Size(104, 24);
     this.options.TabIndex = 2;
     this.options.Text     = "Options...";
     this.options.Click   += new System.EventHandler(this.optionsClick);
     //
     // sin
     //
     this.sin.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.sin.Location = new System.Drawing.Point(328, 56);
     this.sin.Name     = "sin";
     this.sin.Size     = new System.Drawing.Size(104, 23);
     this.sin.TabIndex = 3;
     this.sin.Text     = "Add sin(x)...";
     this.sin.Click   += new System.EventHandler(this.sinClick);
     //
     // cos
     //
     this.cos.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.cos.Location = new System.Drawing.Point(328, 88);
     this.cos.Name     = "cos";
     this.cos.Size     = new System.Drawing.Size(104, 24);
     this.cos.TabIndex = 4;
     this.cos.Text     = "Add cos(x)...";
     this.cos.Click   += new System.EventHandler(this.cosClick);
     //
     // data
     //
     this.data.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.data.Location = new System.Drawing.Point(328, 184);
     this.data.Name     = "data";
     this.data.Size     = new System.Drawing.Size(104, 23);
     this.data.TabIndex = 5;
     this.data.Text     = "Load ASCII data...";
     this.data.Click   += new System.EventHandler(this.asciiClick);
     //
     // button3
     //
     this.button3.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button3.Location = new System.Drawing.Point(328, 120);
     this.button3.Name     = "button3";
     this.button3.Size     = new System.Drawing.Size(104, 24);
     this.button3.TabIndex = 7;
     this.button3.Text     = "Add gaussian...";
     this.button3.Click   += new System.EventHandler(this.gaussClick);
     //
     // button4
     //
     this.button4.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.button4.Location = new System.Drawing.Point(328, 152);
     this.button4.Name     = "button4";
     this.button4.Size     = new System.Drawing.Size(104, 24);
     this.button4.TabIndex = 8;
     this.button4.Text     = "Add Mandelbrot...";
     this.button4.Click   += new System.EventHandler(this.mandelbrotClick);
     //
     // progressBar1
     //
     this.progressBar1.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.progressBar1.Location = new System.Drawing.Point(328, 304);
     this.progressBar1.Name     = "progressBar1";
     this.progressBar1.Size     = new System.Drawing.Size(104, 16);
     this.progressBar1.TabIndex = 9;
     //
     // loadwav
     //
     this.loadwav.Anchor   = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
     this.loadwav.Location = new System.Drawing.Point(328, 216);
     this.loadwav.Name     = "loadwav";
     this.loadwav.Size     = new System.Drawing.Size(104, 23);
     this.loadwav.TabIndex = 10;
     this.loadwav.Text     = "Load WAV file...";
     this.loadwav.Click   += new System.EventHandler(this.wavClick);
     //
     // MainForm
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.ClientSize        = new System.Drawing.Size(440, 325);
     this.Controls.Add(this.loadwav);
     this.Controls.Add(this.progressBar1);
     this.Controls.Add(this.button4);
     this.Controls.Add(this.button3);
     this.Controls.Add(this.data);
     this.Controls.Add(this.cos);
     this.Controls.Add(this.sin);
     this.Controls.Add(this.options);
     this.Controls.Add(this.button1);
     this.Controls.Add(this.graph);
     this.Name = "MainForm";
     this.Text = "FPlot Demo";
     this.ResumeLayout(false);
 }