From 5faa5318bb23cb58d4c5951ea156824ec351376a Mon Sep 17 00:00:00 2001
From: EggMan20339 <99349302+EggMan20339@users.noreply.github.com>
Date: Thu, 1 Feb 2024 09:56:22 -0500
Subject: [PATCH] Basic Form Designed
---
.../ElementaryMathematics.csproj | 3 +
ElementaryMathematics/Form1.Designer.cs | 327 +++++++++++++++++-
ElementaryMathematics/Form1.cs | 15 +
ElementaryMathematics/Form1.resx | 120 +++++++
4 files changed, 464 insertions(+), 1 deletion(-)
create mode 100644 ElementaryMathematics/Form1.resx
diff --git a/ElementaryMathematics/ElementaryMathematics.csproj b/ElementaryMathematics/ElementaryMathematics.csproj
index 7314ad5..47087ea 100644
--- a/ElementaryMathematics/ElementaryMathematics.csproj
+++ b/ElementaryMathematics/ElementaryMathematics.csproj
@@ -54,6 +54,9 @@
+
+ Form1.cs
+
ResXFileCodeGenerator
Resources.Designer.cs
diff --git a/ElementaryMathematics/Form1.Designer.cs b/ElementaryMathematics/Form1.Designer.cs
index d2fbae9..ade0b2b 100644
--- a/ElementaryMathematics/Form1.Designer.cs
+++ b/ElementaryMathematics/Form1.Designer.cs
@@ -29,12 +29,337 @@
///
private void InitializeComponent()
{
- this.components = new System.ComponentModel.Container();
+ this.grpLevels = new System.Windows.Forms.GroupBox();
+ this.rdoLvl1 = new System.Windows.Forms.RadioButton();
+ this.grpOperations = new System.Windows.Forms.GroupBox();
+ this.pnlSummary = new System.Windows.Forms.Panel();
+ this.pnlCalc = new System.Windows.Forms.Panel();
+ this.lblOperator = new System.Windows.Forms.Label();
+ this.lblDisEqual = new System.Windows.Forms.Label();
+ this.txtC = new System.Windows.Forms.TextBox();
+ this.txtB = new System.Windows.Forms.TextBox();
+ this.txtA = new System.Windows.Forms.TextBox();
+ this.rdoLvl2 = new System.Windows.Forms.RadioButton();
+ this.rdoAddition = new System.Windows.Forms.RadioButton();
+ this.rdoSubtraction = new System.Windows.Forms.RadioButton();
+ this.rdoMultiplication = new System.Windows.Forms.RadioButton();
+ this.rdoDivision = new System.Windows.Forms.RadioButton();
+ this.chkShowSummary = new System.Windows.Forms.CheckBox();
+ this.lblMessage = new System.Windows.Forms.Label();
+ this.btnChkAnswer = new System.Windows.Forms.Button();
+ this.btnShowCorrectAnswer = new System.Windows.Forms.Button();
+ this.btnClear = new System.Windows.Forms.Button();
+ this.btnReset = new System.Windows.Forms.Button();
+ this.lblDisCorrect = new System.Windows.Forms.Label();
+ this.lblDisIncorrect = new System.Windows.Forms.Label();
+ this.lblNumCorrect = new System.Windows.Forms.Label();
+ this.lblNumIncorrect = new System.Windows.Forms.Label();
+ this.lblImage = new System.Windows.Forms.Label();
+ this.grpLevels.SuspendLayout();
+ this.grpOperations.SuspendLayout();
+ this.pnlSummary.SuspendLayout();
+ this.pnlCalc.SuspendLayout();
+ this.SuspendLayout();
+ //
+ // grpLevels
+ //
+ this.grpLevels.Controls.Add(this.rdoLvl2);
+ this.grpLevels.Controls.Add(this.rdoLvl1);
+ this.grpLevels.Location = new System.Drawing.Point(60, 225);
+ this.grpLevels.Name = "grpLevels";
+ this.grpLevels.Size = new System.Drawing.Size(211, 120);
+ this.grpLevels.TabIndex = 0;
+ this.grpLevels.TabStop = false;
+ this.grpLevels.Text = "Levels";
+ this.grpLevels.Enter += new System.EventHandler(this.groupBox1_Enter);
+ //
+ // rdoLvl1
+ //
+ this.rdoLvl1.Location = new System.Drawing.Point(28, 32);
+ this.rdoLvl1.Name = "rdoLvl1";
+ this.rdoLvl1.Size = new System.Drawing.Size(101, 18);
+ this.rdoLvl1.TabIndex = 0;
+ this.rdoLvl1.TabStop = true;
+ this.rdoLvl1.Text = "Level 1 (1-10)";
+ this.rdoLvl1.UseVisualStyleBackColor = true;
+ this.rdoLvl1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
+ //
+ // grpOperations
+ //
+ this.grpOperations.Controls.Add(this.rdoDivision);
+ this.grpOperations.Controls.Add(this.rdoMultiplication);
+ this.grpOperations.Controls.Add(this.rdoSubtraction);
+ this.grpOperations.Controls.Add(this.rdoAddition);
+ this.grpOperations.Location = new System.Drawing.Point(287, 225);
+ this.grpOperations.Name = "grpOperations";
+ this.grpOperations.Size = new System.Drawing.Size(211, 120);
+ this.grpOperations.TabIndex = 1;
+ this.grpOperations.TabStop = false;
+ this.grpOperations.Text = "Operations";
+ //
+ // pnlSummary
+ //
+ this.pnlSummary.Controls.Add(this.lblNumIncorrect);
+ this.pnlSummary.Controls.Add(this.lblNumCorrect);
+ this.pnlSummary.Controls.Add(this.lblDisIncorrect);
+ this.pnlSummary.Controls.Add(this.lblDisCorrect);
+ this.pnlSummary.Location = new System.Drawing.Point(562, 242);
+ this.pnlSummary.Name = "pnlSummary";
+ this.pnlSummary.Size = new System.Drawing.Size(197, 102);
+ this.pnlSummary.TabIndex = 2;
+ //
+ // pnlCalc
+ //
+ this.pnlCalc.Controls.Add(this.lblImage);
+ this.pnlCalc.Controls.Add(this.btnReset);
+ this.pnlCalc.Controls.Add(this.btnClear);
+ this.pnlCalc.Controls.Add(this.btnShowCorrectAnswer);
+ this.pnlCalc.Controls.Add(this.btnChkAnswer);
+ this.pnlCalc.Controls.Add(this.lblMessage);
+ this.pnlCalc.Controls.Add(this.lblOperator);
+ this.pnlCalc.Controls.Add(this.lblDisEqual);
+ this.pnlCalc.Controls.Add(this.txtC);
+ this.pnlCalc.Controls.Add(this.txtB);
+ this.pnlCalc.Controls.Add(this.txtA);
+ this.pnlCalc.Location = new System.Drawing.Point(60, 47);
+ this.pnlCalc.Name = "pnlCalc";
+ this.pnlCalc.Size = new System.Drawing.Size(698, 155);
+ this.pnlCalc.TabIndex = 3;
+ //
+ // lblOperator
+ //
+ this.lblOperator.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lblOperator.Location = new System.Drawing.Point(182, 48);
+ this.lblOperator.Name = "lblOperator";
+ this.lblOperator.Size = new System.Drawing.Size(29, 19);
+ this.lblOperator.TabIndex = 4;
+ this.lblOperator.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // lblDisEqual
+ //
+ this.lblDisEqual.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
+ this.lblDisEqual.Location = new System.Drawing.Point(330, 47);
+ this.lblDisEqual.Name = "lblDisEqual";
+ this.lblDisEqual.Size = new System.Drawing.Size(29, 19);
+ this.lblDisEqual.TabIndex = 3;
+ this.lblDisEqual.Text = "=";
+ this.lblDisEqual.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
+ //
+ // txtC
+ //
+ this.txtC.Location = new System.Drawing.Point(380, 47);
+ this.txtC.Name = "txtC";
+ this.txtC.Size = new System.Drawing.Size(79, 20);
+ this.txtC.TabIndex = 2;
+ //
+ // txtB
+ //
+ this.txtB.Location = new System.Drawing.Point(227, 47);
+ this.txtB.Name = "txtB";
+ this.txtB.Size = new System.Drawing.Size(79, 20);
+ this.txtB.TabIndex = 1;
+ //
+ // txtA
+ //
+ this.txtA.Location = new System.Drawing.Point(86, 47);
+ this.txtA.Name = "txtA";
+ this.txtA.Size = new System.Drawing.Size(79, 20);
+ this.txtA.TabIndex = 0;
+ //
+ // rdoLvl2
+ //
+ this.rdoLvl2.Location = new System.Drawing.Point(28, 56);
+ this.rdoLvl2.Name = "rdoLvl2";
+ this.rdoLvl2.Size = new System.Drawing.Size(109, 18);
+ this.rdoLvl2.TabIndex = 1;
+ this.rdoLvl2.TabStop = true;
+ this.rdoLvl2.Text = "Level 2 (11-100)";
+ this.rdoLvl2.UseVisualStyleBackColor = true;
+ //
+ // rdoAddition
+ //
+ this.rdoAddition.Location = new System.Drawing.Point(26, 33);
+ this.rdoAddition.Name = "rdoAddition";
+ this.rdoAddition.Size = new System.Drawing.Size(77, 23);
+ this.rdoAddition.TabIndex = 0;
+ this.rdoAddition.TabStop = true;
+ this.rdoAddition.Text = "Addition";
+ this.rdoAddition.UseVisualStyleBackColor = true;
+ //
+ // rdoSubtraction
+ //
+ this.rdoSubtraction.Location = new System.Drawing.Point(26, 62);
+ this.rdoSubtraction.Name = "rdoSubtraction";
+ this.rdoSubtraction.Size = new System.Drawing.Size(86, 23);
+ this.rdoSubtraction.TabIndex = 1;
+ this.rdoSubtraction.TabStop = true;
+ this.rdoSubtraction.Text = "Subtraction";
+ this.rdoSubtraction.UseVisualStyleBackColor = true;
+ //
+ // rdoMultiplication
+ //
+ this.rdoMultiplication.Location = new System.Drawing.Point(109, 30);
+ this.rdoMultiplication.Name = "rdoMultiplication";
+ this.rdoMultiplication.Size = new System.Drawing.Size(96, 23);
+ this.rdoMultiplication.TabIndex = 2;
+ this.rdoMultiplication.TabStop = true;
+ this.rdoMultiplication.Text = "Multiplication";
+ this.rdoMultiplication.UseVisualStyleBackColor = true;
+ //
+ // rdoDivision
+ //
+ this.rdoDivision.Location = new System.Drawing.Point(109, 62);
+ this.rdoDivision.Name = "rdoDivision";
+ this.rdoDivision.Size = new System.Drawing.Size(77, 23);
+ this.rdoDivision.TabIndex = 3;
+ this.rdoDivision.TabStop = true;
+ this.rdoDivision.Text = "Division";
+ this.rdoDivision.UseVisualStyleBackColor = true;
+ //
+ // chkShowSummary
+ //
+ this.chkShowSummary.Location = new System.Drawing.Point(559, 213);
+ this.chkShowSummary.Name = "chkShowSummary";
+ this.chkShowSummary.Size = new System.Drawing.Size(200, 29);
+ this.chkShowSummary.TabIndex = 4;
+ this.chkShowSummary.Text = "Display Summary Information";
+ this.chkShowSummary.UseVisualStyleBackColor = true;
+ this.chkShowSummary.CheckedChanged += new System.EventHandler(this.checkBox1_CheckedChanged);
+ //
+ // lblMessage
+ //
+ this.lblMessage.Location = new System.Drawing.Point(425, 101);
+ this.lblMessage.Name = "lblMessage";
+ this.lblMessage.Size = new System.Drawing.Size(77, 24);
+ this.lblMessage.TabIndex = 5;
+ //
+ // btnChkAnswer
+ //
+ this.btnChkAnswer.Location = new System.Drawing.Point(592, 20);
+ this.btnChkAnswer.Name = "btnChkAnswer";
+ this.btnChkAnswer.Size = new System.Drawing.Size(105, 28);
+ this.btnChkAnswer.TabIndex = 6;
+ this.btnChkAnswer.Text = "Check Answer";
+ this.btnChkAnswer.UseVisualStyleBackColor = true;
+ //
+ // btnShowCorrectAnswer
+ //
+ this.btnShowCorrectAnswer.Location = new System.Drawing.Point(592, 54);
+ this.btnShowCorrectAnswer.Name = "btnShowCorrectAnswer";
+ this.btnShowCorrectAnswer.Size = new System.Drawing.Size(105, 28);
+ this.btnShowCorrectAnswer.TabIndex = 7;
+ this.btnShowCorrectAnswer.Text = "Show Correct";
+ this.btnShowCorrectAnswer.UseVisualStyleBackColor = true;
+ //
+ // btnClear
+ //
+ this.btnClear.Location = new System.Drawing.Point(592, 88);
+ this.btnClear.Name = "btnClear";
+ this.btnClear.Size = new System.Drawing.Size(105, 28);
+ this.btnClear.TabIndex = 8;
+ this.btnClear.Text = "Clear";
+ this.btnClear.UseVisualStyleBackColor = true;
+ //
+ // btnReset
+ //
+ this.btnReset.Location = new System.Drawing.Point(592, 122);
+ this.btnReset.Name = "btnReset";
+ this.btnReset.Size = new System.Drawing.Size(105, 28);
+ this.btnReset.TabIndex = 9;
+ this.btnReset.Text = "Reset";
+ this.btnReset.UseVisualStyleBackColor = true;
+ //
+ // lblDisCorrect
+ //
+ this.lblDisCorrect.Location = new System.Drawing.Point(15, 15);
+ this.lblDisCorrect.Name = "lblDisCorrect";
+ this.lblDisCorrect.Size = new System.Drawing.Size(75, 20);
+ this.lblDisCorrect.TabIndex = 0;
+ this.lblDisCorrect.Text = "Correct:";
+ //
+ // lblDisIncorrect
+ //
+ this.lblDisIncorrect.Location = new System.Drawing.Point(96, 13);
+ this.lblDisIncorrect.Name = "lblDisIncorrect";
+ this.lblDisIncorrect.Size = new System.Drawing.Size(75, 20);
+ this.lblDisIncorrect.TabIndex = 1;
+ this.lblDisIncorrect.Text = "Incorrect:";
+ //
+ // lblNumCorrect
+ //
+ this.lblNumCorrect.Location = new System.Drawing.Point(15, 50);
+ this.lblNumCorrect.Name = "lblNumCorrect";
+ this.lblNumCorrect.Size = new System.Drawing.Size(75, 20);
+ this.lblNumCorrect.TabIndex = 2;
+ //
+ // lblNumIncorrect
+ //
+ this.lblNumIncorrect.Location = new System.Drawing.Point(96, 50);
+ this.lblNumIncorrect.Name = "lblNumIncorrect";
+ this.lblNumIncorrect.Size = new System.Drawing.Size(75, 20);
+ this.lblNumIncorrect.TabIndex = 3;
+ //
+ // lblImage
+ //
+ this.lblImage.Location = new System.Drawing.Point(508, 37);
+ this.lblImage.Name = "lblImage";
+ this.lblImage.Size = new System.Drawing.Size(47, 44);
+ this.lblImage.TabIndex = 10;
+ //
+ // 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.chkShowSummary);
+ this.Controls.Add(this.pnlCalc);
+ this.Controls.Add(this.pnlSummary);
+ this.Controls.Add(this.grpOperations);
+ this.Controls.Add(this.grpLevels);
+ this.Name = "Form1";
this.Text = "Form1";
+ this.grpLevels.ResumeLayout(false);
+ this.grpOperations.ResumeLayout(false);
+ this.pnlSummary.ResumeLayout(false);
+ this.pnlCalc.ResumeLayout(false);
+ this.pnlCalc.PerformLayout();
+ this.ResumeLayout(false);
}
+ private System.Windows.Forms.Label lblImage;
+
+ private System.Windows.Forms.Label lblMessage;
+ private System.Windows.Forms.Button btnChkAnswer;
+ private System.Windows.Forms.Button btnShowCorrectAnswer;
+ private System.Windows.Forms.Button btnClear;
+ private System.Windows.Forms.Button btnReset;
+ private System.Windows.Forms.Label lblDisCorrect;
+ private System.Windows.Forms.Label lblDisIncorrect;
+ private System.Windows.Forms.Label lblNumCorrect;
+ private System.Windows.Forms.Label lblNumIncorrect;
+
+ private System.Windows.Forms.RadioButton rdoLvl1;
+ private System.Windows.Forms.RadioButton rdoLvl2;
+ private System.Windows.Forms.RadioButton rdoSubtraction;
+ private System.Windows.Forms.RadioButton rdoMultiplication;
+ private System.Windows.Forms.RadioButton rdoDivision;
+ private System.Windows.Forms.CheckBox chkShowSummary;
+
+ private System.Windows.Forms.Label lblOperator;
+ private System.Windows.Forms.RadioButton rdoAddition;
+
+ private System.Windows.Forms.TextBox txtC;
+ private System.Windows.Forms.Label lblDisEqual;
+
+ private System.Windows.Forms.GroupBox grpLevels;
+ private System.Windows.Forms.GroupBox grpOperations;
+ private System.Windows.Forms.Panel pnlSummary;
+ private System.Windows.Forms.Panel pnlCalc;
+ private System.Windows.Forms.TextBox txtA;
+ private System.Windows.Forms.TextBox txtB;
+
+ private System.Windows.Forms.GroupBox grpSummary;
+
#endregion
}
}
\ No newline at end of file
diff --git a/ElementaryMathematics/Form1.cs b/ElementaryMathematics/Form1.cs
index ac5ba5a..528af47 100644
--- a/ElementaryMathematics/Form1.cs
+++ b/ElementaryMathematics/Form1.cs
@@ -17,5 +17,20 @@ namespace ElementaryMathematics
InitializeComponent();
//test
}
+
+ private void groupBox1_Enter(object sender, EventArgs e)
+ {
+ // throw new System.NotImplementedException();
+ }
+
+ private void radioButton1_CheckedChanged(object sender, EventArgs e)
+ {
+ // throw new System.NotImplementedException();
+ }
+
+ private void checkBox1_CheckedChanged(object sender, EventArgs e)
+ {
+ // throw new System.NotImplementedException();
+ }
}
}
\ No newline at end of file
diff --git a/ElementaryMathematics/Form1.resx b/ElementaryMathematics/Form1.resx
new file mode 100644
index 0000000..1af7de1
--- /dev/null
+++ b/ElementaryMathematics/Form1.resx
@@ -0,0 +1,120 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file