diff --git a/src/TestApplication/Main.Designer.cs b/src/TestApplication/Main.Designer.cs index 0864421..905fef3 100644 --- a/src/TestApplication/Main.Designer.cs +++ b/src/TestApplication/Main.Designer.cs @@ -62,12 +62,13 @@ private void InitializeComponent() this.AnglePictureBox.Size = new System.Drawing.Size(198, 200); this.AnglePictureBox.TabIndex = 8; this.AnglePictureBox.TabStop = false; + this.AnglePictureBox.Click += new System.EventHandler(this.AnglePictureBox_Click); // // textBox2 // this.textBox2.BackColor = System.Drawing.SystemColors.ControlDarkDark; this.textBox2.Location = new System.Drawing.Point(755, 0); - this.textBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBox2.Margin = new System.Windows.Forms.Padding(2); this.textBox2.Name = "textBox2"; this.textBox2.Size = new System.Drawing.Size(166, 20); this.textBox2.TabIndex = 10; @@ -77,7 +78,7 @@ private void InitializeComponent() // this.textBox1.BackColor = System.Drawing.SystemColors.ButtonHighlight; this.textBox1.Location = new System.Drawing.Point(376, 0); - this.textBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.textBox1.Margin = new System.Windows.Forms.Padding(2); this.textBox1.Name = "textBox1"; this.textBox1.Size = new System.Drawing.Size(383, 20); this.textBox1.TabIndex = 9; @@ -85,7 +86,7 @@ private void InitializeComponent() // button1 // this.button1.Location = new System.Drawing.Point(0, 200); - this.button1.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); + this.button1.Margin = new System.Windows.Forms.Padding(1); this.button1.Name = "button1"; this.button1.Size = new System.Drawing.Size(198, 31); this.button1.TabIndex = 11; diff --git a/src/TestApplication/Main.cs b/src/TestApplication/Main.cs index 2d77f54..289202b 100644 --- a/src/TestApplication/Main.cs +++ b/src/TestApplication/Main.cs @@ -33,9 +33,6 @@ private void Main_Resize(object sender, EventArgs e) private void Main_Load(object sender, EventArgs e) { - - - this.DisplayBox.Image = new Bitmap(DisplayBox.Width, DisplayBox.Height); InitializeAngleGrid(); pivotX = DisplayBox.Width / 2; @@ -44,6 +41,7 @@ private void Main_Load(object sender, EventArgs e) private void DisplayBox_Click(object sender, EventArgs e) { + if (freezeFrame) { freezeFrame = false; @@ -145,6 +143,11 @@ private void button2_Click(object sender, EventArgs e) myTimer.Stop(); } + private void AnglePictureBox_Click(object sender, EventArgs e) + { + + } + private void DisplayBox_MouseDown(object sender, MouseEventArgs e) {