frmEdit designed

This commit is contained in:
EggMan20339 2024-02-14 09:34:52 -05:00
parent 4b84e30eed
commit b26d4cb46b
3 changed files with 324 additions and 1 deletions

View File

@ -62,6 +62,9 @@
<Compile Include="Program.cs"/> <Compile Include="Program.cs"/>
<Compile Include="Properties\AssemblyInfo.cs"/> <Compile Include="Properties\AssemblyInfo.cs"/>
<Compile Include="StudentDataTier.cs" /> <Compile Include="StudentDataTier.cs" />
<EmbeddedResource Include="frmEdit.resx">
<DependentUpon>frmEdit.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="frmSearch.resx"> <EmbeddedResource Include="frmSearch.resx">
<DependentUpon>frmSearch.cs</DependentUpon> <DependentUpon>frmSearch.cs</DependentUpon>
</EmbeddedResource> </EmbeddedResource>

View File

@ -31,12 +31,212 @@ namespace Database3
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.components = new System.ComponentModel.Container(); this.lblDisStuID = new System.Windows.Forms.Label();
this.lblDisfname = new System.Windows.Forms.Label();
this.lblDislname = new System.Windows.Forms.Label();
this.lblDisDOB = new System.Windows.Forms.Label();
this.lblDisSalary = new System.Windows.Forms.Label();
this.lblDisGender = new System.Windows.Forms.Label();
this.lblDisCredits = new System.Windows.Forms.Label();
this.lblDisState = new System.Windows.Forms.Label();
this.btnUpdate = new System.Windows.Forms.Button();
this.txtStuID = new System.Windows.Forms.TextBox();
this.txtfname = new System.Windows.Forms.TextBox();
this.txtlname = new System.Windows.Forms.TextBox();
this.txtDOB = new System.Windows.Forms.TextBox();
this.txtSalary = new System.Windows.Forms.TextBox();
this.txtCredits = new System.Windows.Forms.TextBox();
this.cboGender = new System.Windows.Forms.ComboBox();
this.cboState = new System.Windows.Forms.ComboBox();
this.SuspendLayout();
//
// lblDisStuID
//
this.lblDisStuID.Location = new System.Drawing.Point(91, 62);
this.lblDisStuID.Name = "lblDisStuID";
this.lblDisStuID.Size = new System.Drawing.Size(183, 24);
this.lblDisStuID.TabIndex = 0;
this.lblDisStuID.Text = "Student ID:";
this.lblDisStuID.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDisfname
//
this.lblDisfname.Location = new System.Drawing.Point(91, 86);
this.lblDisfname.Name = "lblDisfname";
this.lblDisfname.Size = new System.Drawing.Size(183, 24);
this.lblDisfname.TabIndex = 1;
this.lblDisfname.Text = "First Name:";
this.lblDisfname.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDislname
//
this.lblDislname.Location = new System.Drawing.Point(91, 110);
this.lblDislname.Name = "lblDislname";
this.lblDislname.Size = new System.Drawing.Size(183, 24);
this.lblDislname.TabIndex = 2;
this.lblDislname.Text = "Last Name:";
this.lblDislname.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDisDOB
//
this.lblDisDOB.Location = new System.Drawing.Point(91, 134);
this.lblDisDOB.Name = "lblDisDOB";
this.lblDisDOB.Size = new System.Drawing.Size(183, 24);
this.lblDisDOB.TabIndex = 3;
this.lblDisDOB.Text = "Date of Birth:";
this.lblDisDOB.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDisSalary
//
this.lblDisSalary.Location = new System.Drawing.Point(91, 158);
this.lblDisSalary.Name = "lblDisSalary";
this.lblDisSalary.Size = new System.Drawing.Size(183, 24);
this.lblDisSalary.TabIndex = 4;
this.lblDisSalary.Text = "Salary:";
this.lblDisSalary.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDisGender
//
this.lblDisGender.Location = new System.Drawing.Point(91, 182);
this.lblDisGender.Name = "lblDisGender";
this.lblDisGender.Size = new System.Drawing.Size(183, 24);
this.lblDisGender.TabIndex = 5;
this.lblDisGender.Text = "Gender:";
this.lblDisGender.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDisCredits
//
this.lblDisCredits.Location = new System.Drawing.Point(91, 206);
this.lblDisCredits.Name = "lblDisCredits";
this.lblDisCredits.Size = new System.Drawing.Size(183, 24);
this.lblDisCredits.TabIndex = 6;
this.lblDisCredits.Text = "Total Credits:";
this.lblDisCredits.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// lblDisState
//
this.lblDisState.Location = new System.Drawing.Point(91, 230);
this.lblDisState.Name = "lblDisState";
this.lblDisState.Size = new System.Drawing.Size(183, 24);
this.lblDisState.TabIndex = 7;
this.lblDisState.Text = "State:";
this.lblDisState.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
//
// btnUpdate
//
this.btnUpdate.Location = new System.Drawing.Point(537, 111);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(75, 23);
this.btnUpdate.TabIndex = 8;
this.btnUpdate.Text = "Update";
this.btnUpdate.UseVisualStyleBackColor = true;
//
// txtStuID
//
this.txtStuID.Location = new System.Drawing.Point(312, 65);
this.txtStuID.Name = "txtStuID";
this.txtStuID.Size = new System.Drawing.Size(187, 20);
this.txtStuID.TabIndex = 9;
//
// txtfname
//
this.txtfname.Location = new System.Drawing.Point(312, 89);
this.txtfname.Name = "txtfname";
this.txtfname.Size = new System.Drawing.Size(187, 20);
this.txtfname.TabIndex = 10;
//
// txtlname
//
this.txtlname.Location = new System.Drawing.Point(312, 113);
this.txtlname.Name = "txtlname";
this.txtlname.Size = new System.Drawing.Size(187, 20);
this.txtlname.TabIndex = 11;
//
// txtDOB
//
this.txtDOB.Location = new System.Drawing.Point(312, 137);
this.txtDOB.Name = "txtDOB";
this.txtDOB.Size = new System.Drawing.Size(187, 20);
this.txtDOB.TabIndex = 12;
//
// txtSalary
//
this.txtSalary.Location = new System.Drawing.Point(312, 161);
this.txtSalary.Name = "txtSalary";
this.txtSalary.Size = new System.Drawing.Size(187, 20);
this.txtSalary.TabIndex = 13;
//
// txtCredits
//
this.txtCredits.Location = new System.Drawing.Point(312, 209);
this.txtCredits.Name = "txtCredits";
this.txtCredits.Size = new System.Drawing.Size(187, 20);
this.txtCredits.TabIndex = 15;
//
// cboGender
//
this.cboGender.FormattingEnabled = true;
this.cboGender.Location = new System.Drawing.Point(312, 185);
this.cboGender.Name = "cboGender";
this.cboGender.Size = new System.Drawing.Size(187, 21);
this.cboGender.TabIndex = 16;
//
// cboState
//
this.cboState.FormattingEnabled = true;
this.cboState.Location = new System.Drawing.Point(312, 233);
this.cboState.Name = "cboState";
this.cboState.Size = new System.Drawing.Size(187, 21);
this.cboState.TabIndex = 17;
//
// frmEdit
//
this.AcceptButton = this.btnUpdate;
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.cboState);
this.Controls.Add(this.cboGender);
this.Controls.Add(this.txtCredits);
this.Controls.Add(this.txtSalary);
this.Controls.Add(this.txtDOB);
this.Controls.Add(this.txtlname);
this.Controls.Add(this.txtfname);
this.Controls.Add(this.txtStuID);
this.Controls.Add(this.btnUpdate);
this.Controls.Add(this.lblDisState);
this.Controls.Add(this.lblDisCredits);
this.Controls.Add(this.lblDisGender);
this.Controls.Add(this.lblDisSalary);
this.Controls.Add(this.lblDisDOB);
this.Controls.Add(this.lblDislname);
this.Controls.Add(this.lblDisfname);
this.Controls.Add(this.lblDisStuID);
this.Name = "frmEdit";
this.Text = "frmEdit"; this.Text = "frmEdit";
this.ResumeLayout(false);
this.PerformLayout();
} }
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.TextBox txtStuID;
private System.Windows.Forms.TextBox txtfname;
private System.Windows.Forms.TextBox txtlname;
private System.Windows.Forms.TextBox txtDOB;
private System.Windows.Forms.TextBox txtSalary;
private System.Windows.Forms.TextBox txtCredits;
private System.Windows.Forms.ComboBox cboGender;
private System.Windows.Forms.ComboBox cboState;
private System.Windows.Forms.Label lblDisStuID;
private System.Windows.Forms.Label lblDisfname;
private System.Windows.Forms.Label lblDislname;
private System.Windows.Forms.Label lblDisDOB;
private System.Windows.Forms.Label lblDisSalary;
private System.Windows.Forms.Label lblDisGender;
private System.Windows.Forms.Label lblDisCredits;
private System.Windows.Forms.Label lblDisState;
#endregion #endregion
} }
} }

120
Database3/frmEdit.resx Normal file
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>