Basic Form Designed

This commit is contained in:
EggMan20339 2024-02-01 09:56:22 -05:00
parent 29576b47a2
commit 5faa5318bb
4 changed files with 464 additions and 1 deletions

View File

@ -54,6 +54,9 @@
</Compile> </Compile>
<Compile Include="Program.cs"/> <Compile Include="Program.cs"/>
<Compile Include="Properties\AssemblyInfo.cs"/> <Compile Include="Properties\AssemblyInfo.cs"/>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx"> <EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator> <Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput> <LastGenOutput>Resources.Designer.cs</LastGenOutput>

View File

@ -29,12 +29,337 @@
/// </summary> /// </summary>
private void InitializeComponent() 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.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(800, 450); 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.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 #endregion
} }
} }

View File

@ -17,5 +17,20 @@ namespace ElementaryMathematics
InitializeComponent(); InitializeComponent();
//test //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();
}
} }
} }

View File

@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>