summaryrefslogtreecommitdiffstats
path: root/src/CS340.Plotter/Plot.Designer.cs
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-04-20 13:34:37 -0500
committerToby Vincent <tobyv13@gmail.com>2021-04-20 13:34:37 -0500
commitd2dea1b16ff29f6e45fca971290f94d4e0ed2467 (patch)
tree755be27957462fb0288d3a985eb86ded0aa63cee /src/CS340.Plotter/Plot.Designer.cs
parent3af8b7c9846e34fdf39f0364394c40f3c833d465 (diff)
added Canvas
Diffstat (limited to 'src/CS340.Plotter/Plot.Designer.cs')
-rw-r--r--src/CS340.Plotter/Plot.Designer.cs21
1 files changed, 19 insertions, 2 deletions
diff --git a/src/CS340.Plotter/Plot.Designer.cs b/src/CS340.Plotter/Plot.Designer.cs
index c1a6b5f..36d9a56 100644
--- a/src/CS340.Plotter/Plot.Designer.cs
+++ b/src/CS340.Plotter/Plot.Designer.cs
@@ -29,20 +29,37 @@ namespace Plotter
/// </summary>
private void InitializeComponent()
{
+ this.Canvas = new System.Windows.Forms.PictureBox();
+ ((System.ComponentModel.ISupportInitialize)(this.Canvas)).BeginInit();
this.SuspendLayout();
//
+ // Canvas
+ //
+ this.Canvas.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.Canvas.Location = new System.Drawing.Point(0, 0);
+ this.Canvas.Name = "Canvas";
+ this.Canvas.Size = new System.Drawing.Size(604, 368);
+ this.Canvas.TabIndex = 0;
+ this.Canvas.TabStop = false;
+ this.Canvas.SizeChanged += new System.EventHandler(this.Canvas_SizeChanged);
+ this.Canvas.MouseDown += new System.Windows.Forms.MouseEventHandler(this.Canvas_MouseDown);
+ //
// Plot
//
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
+ this.ClientSize = new System.Drawing.Size(604, 368);
+ this.Controls.Add(this.Canvas);
this.Name = "Plot";
- this.Text = "Form1";
+ this.Text = "Plot";
+ ((System.ComponentModel.ISupportInitialize)(this.Canvas)).EndInit();
this.ResumeLayout(false);
}
#endregion
+
+ private System.Windows.Forms.PictureBox Canvas;
}
}