From fd5d30dcb72c067c0455b63c43ee164b1cd03ce2 Mon Sep 17 00:00:00 2001 From: EggMan20339 <99349302+EggMan20339@users.noreply.github.com> Date: Thu, 1 Feb 2024 09:57:29 -0500 Subject: [PATCH] Added Print and Exit Button --- ElementaryMathematics/Form1.Designer.cs | 26 +++++++++++++++++++++++++ ElementaryMathematics/Form1.cs | 5 +++++ 2 files changed, 31 insertions(+) diff --git a/ElementaryMathematics/Form1.Designer.cs b/ElementaryMathematics/Form1.Designer.cs index ade0b2b..fff03a3 100644 --- a/ElementaryMathematics/Form1.Designer.cs +++ b/ElementaryMathematics/Form1.Designer.cs @@ -55,6 +55,8 @@ this.lblNumCorrect = new System.Windows.Forms.Label(); this.lblNumIncorrect = new System.Windows.Forms.Label(); this.lblImage = new System.Windows.Forms.Label(); + this.btnExit = new System.Windows.Forms.Button(); + this.button1 = new System.Windows.Forms.Button(); this.grpLevels.SuspendLayout(); this.grpOperations.SuspendLayout(); this.pnlSummary.SuspendLayout(); @@ -306,11 +308,32 @@ this.lblImage.Size = new System.Drawing.Size(47, 44); this.lblImage.TabIndex = 10; // + // btnExit + // + this.btnExit.Location = new System.Drawing.Point(675, 371); + this.btnExit.Name = "btnExit"; + this.btnExit.Size = new System.Drawing.Size(106, 34); + this.btnExit.TabIndex = 5; + this.btnExit.Text = "Exit"; + this.btnExit.UseVisualStyleBackColor = true; + // + // button1 + // + this.button1.Location = new System.Drawing.Point(546, 371); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(106, 34); + this.button1.TabIndex = 6; + this.button1.Text = "Exit"; + this.button1.UseVisualStyleBackColor = true; + this.button1.Click += new System.EventHandler(this.button1_Click); + // // Form1 // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.button1); + this.Controls.Add(this.btnExit); this.Controls.Add(this.chkShowSummary); this.Controls.Add(this.pnlCalc); this.Controls.Add(this.pnlSummary); @@ -326,6 +349,9 @@ this.ResumeLayout(false); } + private System.Windows.Forms.Button btnExit; + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Label lblImage; private System.Windows.Forms.Label lblMessage; diff --git a/ElementaryMathematics/Form1.cs b/ElementaryMathematics/Form1.cs index 528af47..f8005ed 100644 --- a/ElementaryMathematics/Form1.cs +++ b/ElementaryMathematics/Form1.cs @@ -32,5 +32,10 @@ namespace ElementaryMathematics { // throw new System.NotImplementedException(); } + + private void button1_Click(object sender, EventArgs e) + { + // throw new System.NotImplementedException(); + } } } \ No newline at end of file