готовая 2 лаба
This commit is contained in:
parent
b618ea277e
commit
93b6b479f9
@ -28,82 +28,88 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
labelWorkPiece = new Label();
|
this.labelWorkPiece = new System.Windows.Forms.Label();
|
||||||
labelCount = new Label();
|
this.labelCount = new System.Windows.Forms.Label();
|
||||||
comboBoxWorkPiece = new ComboBox();
|
this.comboBoxWorkPiece = new System.Windows.Forms.ComboBox();
|
||||||
textBoxCount = new TextBox();
|
this.textBoxCount = new System.Windows.Forms.TextBox();
|
||||||
buttonSave = new Button();
|
this.buttonSave = new System.Windows.Forms.Button();
|
||||||
buttonCancel = new Button();
|
this.buttonCancel = new System.Windows.Forms.Button();
|
||||||
SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// labelWorkPiece
|
// labelWorkPiece
|
||||||
//
|
//
|
||||||
labelWorkPiece.AutoSize = true;
|
this.labelWorkPiece.AutoSize = true;
|
||||||
labelWorkPiece.Location = new Point(31, 33);
|
this.labelWorkPiece.Location = new System.Drawing.Point(27, 25);
|
||||||
labelWorkPiece.Name = "labelWorkPiece";
|
this.labelWorkPiece.Name = "labelWorkPiece";
|
||||||
labelWorkPiece.Size = new Size(81, 20);
|
this.labelWorkPiece.Size = new System.Drawing.Size(65, 15);
|
||||||
labelWorkPiece.TabIndex = 0;
|
this.labelWorkPiece.TabIndex = 0;
|
||||||
labelWorkPiece.Text = "Заготовка:";
|
this.labelWorkPiece.Text = "Заготовка:";
|
||||||
//
|
//
|
||||||
// labelCount
|
// labelCount
|
||||||
//
|
//
|
||||||
labelCount.AutoSize = true;
|
this.labelCount.AutoSize = true;
|
||||||
labelCount.Location = new Point(31, 79);
|
this.labelCount.Location = new System.Drawing.Point(27, 59);
|
||||||
labelCount.Name = "labelCount";
|
this.labelCount.Name = "labelCount";
|
||||||
labelCount.Size = new Size(93, 20);
|
this.labelCount.Size = new System.Drawing.Size(75, 15);
|
||||||
labelCount.TabIndex = 1;
|
this.labelCount.TabIndex = 1;
|
||||||
labelCount.Text = "Количество:";
|
this.labelCount.Text = "Количество:";
|
||||||
//
|
//
|
||||||
// comboBoxWorkPiece
|
// comboBoxWorkPiece
|
||||||
//
|
//
|
||||||
comboBoxWorkPiece.FormattingEnabled = true;
|
this.comboBoxWorkPiece.FormattingEnabled = true;
|
||||||
comboBoxWorkPiece.Location = new Point(156, 30);
|
this.comboBoxWorkPiece.Location = new System.Drawing.Point(136, 22);
|
||||||
comboBoxWorkPiece.Name = "comboBoxWorkPiece";
|
this.comboBoxWorkPiece.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
comboBoxWorkPiece.Size = new Size(320, 28);
|
this.comboBoxWorkPiece.Name = "comboBoxWorkPiece";
|
||||||
comboBoxWorkPiece.TabIndex = 2;
|
this.comboBoxWorkPiece.Size = new System.Drawing.Size(280, 23);
|
||||||
|
this.comboBoxWorkPiece.TabIndex = 2;
|
||||||
//
|
//
|
||||||
// textBoxCount
|
// textBoxCount
|
||||||
//
|
//
|
||||||
textBoxCount.Location = new Point(156, 76);
|
this.textBoxCount.Location = new System.Drawing.Point(136, 57);
|
||||||
textBoxCount.Name = "textBoxCount";
|
this.textBoxCount.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
textBoxCount.Size = new Size(320, 27);
|
this.textBoxCount.Name = "textBoxCount";
|
||||||
textBoxCount.TabIndex = 3;
|
this.textBoxCount.Size = new System.Drawing.Size(280, 23);
|
||||||
|
this.textBoxCount.TabIndex = 3;
|
||||||
//
|
//
|
||||||
// buttonSave
|
// buttonSave
|
||||||
//
|
//
|
||||||
buttonSave.Location = new Point(236, 118);
|
this.buttonSave.Location = new System.Drawing.Point(206, 88);
|
||||||
buttonSave.Name = "buttonSave";
|
this.buttonSave.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
buttonSave.Size = new Size(110, 38);
|
this.buttonSave.Name = "buttonSave";
|
||||||
buttonSave.TabIndex = 4;
|
this.buttonSave.Size = new System.Drawing.Size(96, 28);
|
||||||
buttonSave.Text = "Сохранить";
|
this.buttonSave.TabIndex = 4;
|
||||||
buttonSave.UseVisualStyleBackColor = true;
|
this.buttonSave.Text = "Сохранить";
|
||||||
buttonSave.Click += ButtonSave_Click;
|
this.buttonSave.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonSave.Click += new System.EventHandler(this.ButtonSave_Click);
|
||||||
//
|
//
|
||||||
// buttonCancel
|
// buttonCancel
|
||||||
//
|
//
|
||||||
buttonCancel.Location = new Point(363, 118);
|
this.buttonCancel.Location = new System.Drawing.Point(318, 88);
|
||||||
buttonCancel.Name = "buttonCancel";
|
this.buttonCancel.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
buttonCancel.Size = new Size(113, 38);
|
this.buttonCancel.Name = "buttonCancel";
|
||||||
buttonCancel.TabIndex = 5;
|
this.buttonCancel.Size = new System.Drawing.Size(99, 28);
|
||||||
buttonCancel.Text = "Отмена";
|
this.buttonCancel.TabIndex = 5;
|
||||||
buttonCancel.UseVisualStyleBackColor = true;
|
this.buttonCancel.Text = "Отмена";
|
||||||
buttonCancel.Click += ButtonCancel_Click;
|
this.buttonCancel.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
|
||||||
//
|
//
|
||||||
// FormFurnitureWorkPiece
|
// FormFurnitureWorkPiece
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
ClientSize = new Size(526, 168);
|
this.ClientSize = new System.Drawing.Size(460, 126);
|
||||||
Controls.Add(buttonCancel);
|
this.Controls.Add(this.buttonCancel);
|
||||||
Controls.Add(buttonSave);
|
this.Controls.Add(this.buttonSave);
|
||||||
Controls.Add(textBoxCount);
|
this.Controls.Add(this.textBoxCount);
|
||||||
Controls.Add(comboBoxWorkPiece);
|
this.Controls.Add(this.comboBoxWorkPiece);
|
||||||
Controls.Add(labelCount);
|
this.Controls.Add(this.labelCount);
|
||||||
Controls.Add(labelWorkPiece);
|
this.Controls.Add(this.labelWorkPiece);
|
||||||
Name = "FormFurnitureWorkPiece";
|
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
Text = "Заготовки для изделия";
|
this.Name = "FormFurnitureWorkPiece";
|
||||||
ResumeLayout(false);
|
this.Text = "Заготовки для изделия";
|
||||||
PerformLayout();
|
this.ResumeLayout(false);
|
||||||
|
this.PerformLayout();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -45,6 +45,7 @@
|
|||||||
this.buttonAdd.TabIndex = 0;
|
this.buttonAdd.TabIndex = 0;
|
||||||
this.buttonAdd.Text = "Добавить";
|
this.buttonAdd.Text = "Добавить";
|
||||||
this.buttonAdd.UseVisualStyleBackColor = true;
|
this.buttonAdd.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonAdd.Click += new System.EventHandler(this.ButtonAdd_Click);
|
||||||
//
|
//
|
||||||
// buttonUpdate
|
// buttonUpdate
|
||||||
//
|
//
|
||||||
@ -55,6 +56,7 @@
|
|||||||
this.buttonUpdate.TabIndex = 1;
|
this.buttonUpdate.TabIndex = 1;
|
||||||
this.buttonUpdate.Text = "Изменить";
|
this.buttonUpdate.Text = "Изменить";
|
||||||
this.buttonUpdate.UseVisualStyleBackColor = true;
|
this.buttonUpdate.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonUpdate.Click += new System.EventHandler(this.ButtonUpdate_Click);
|
||||||
//
|
//
|
||||||
// buttonDelete
|
// buttonDelete
|
||||||
//
|
//
|
||||||
@ -65,6 +67,7 @@
|
|||||||
this.buttonDelete.TabIndex = 2;
|
this.buttonDelete.TabIndex = 2;
|
||||||
this.buttonDelete.Text = "Удалить";
|
this.buttonDelete.Text = "Удалить";
|
||||||
this.buttonDelete.UseVisualStyleBackColor = true;
|
this.buttonDelete.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonDelete.Click += new System.EventHandler(this.ButtonDelete_Click);
|
||||||
//
|
//
|
||||||
// buttonRef
|
// buttonRef
|
||||||
//
|
//
|
||||||
@ -75,6 +78,7 @@
|
|||||||
this.buttonRef.TabIndex = 3;
|
this.buttonRef.TabIndex = 3;
|
||||||
this.buttonRef.Text = "Обновить";
|
this.buttonRef.Text = "Обновить";
|
||||||
this.buttonRef.UseVisualStyleBackColor = true;
|
this.buttonRef.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonRef.Click += new System.EventHandler(this.ButtonRef_Click);
|
||||||
//
|
//
|
||||||
// dataGridView
|
// dataGridView
|
||||||
//
|
//
|
||||||
|
@ -28,79 +28,86 @@
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
buttonAdd = new Button();
|
this.buttonAdd = new System.Windows.Forms.Button();
|
||||||
buttonUpdate = new Button();
|
this.buttonUpdate = new System.Windows.Forms.Button();
|
||||||
buttonDelete = new Button();
|
this.buttonDelete = new System.Windows.Forms.Button();
|
||||||
buttonRefresh = new Button();
|
this.buttonRefresh = new System.Windows.Forms.Button();
|
||||||
dataGridView = new DataGridView();
|
this.dataGridView = new System.Windows.Forms.DataGridView();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
|
||||||
SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// buttonAdd
|
// buttonAdd
|
||||||
//
|
//
|
||||||
buttonAdd.Location = new Point(641, 36);
|
this.buttonAdd.Location = new System.Drawing.Point(561, 27);
|
||||||
buttonAdd.Name = "buttonAdd";
|
this.buttonAdd.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
buttonAdd.Size = new Size(116, 47);
|
this.buttonAdd.Name = "buttonAdd";
|
||||||
buttonAdd.TabIndex = 0;
|
this.buttonAdd.Size = new System.Drawing.Size(102, 35);
|
||||||
buttonAdd.Text = "Добавить";
|
this.buttonAdd.TabIndex = 0;
|
||||||
buttonAdd.UseVisualStyleBackColor = true;
|
this.buttonAdd.Text = "Добавить";
|
||||||
buttonAdd.Click += ButtonAdd_Click;
|
this.buttonAdd.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonAdd.Click += new System.EventHandler(this.ButtonAdd_Click);
|
||||||
//
|
//
|
||||||
// buttonUpdate
|
// buttonUpdate
|
||||||
//
|
//
|
||||||
buttonUpdate.Location = new Point(641, 102);
|
this.buttonUpdate.Location = new System.Drawing.Point(561, 76);
|
||||||
buttonUpdate.Name = "buttonUpdate";
|
this.buttonUpdate.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
buttonUpdate.Size = new Size(116, 47);
|
this.buttonUpdate.Name = "buttonUpdate";
|
||||||
buttonUpdate.TabIndex = 1;
|
this.buttonUpdate.Size = new System.Drawing.Size(102, 35);
|
||||||
buttonUpdate.Text = "Изменить";
|
this.buttonUpdate.TabIndex = 1;
|
||||||
buttonUpdate.UseVisualStyleBackColor = true;
|
this.buttonUpdate.Text = "Изменить";
|
||||||
buttonUpdate.Click += ButtonUpdate_Click;
|
this.buttonUpdate.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonUpdate.Click += new System.EventHandler(this.ButtonUpdate_Click);
|
||||||
//
|
//
|
||||||
// buttonDelete
|
// buttonDelete
|
||||||
//
|
//
|
||||||
buttonDelete.Location = new Point(641, 168);
|
this.buttonDelete.Location = new System.Drawing.Point(561, 126);
|
||||||
buttonDelete.Name = "buttonDelete";
|
this.buttonDelete.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
buttonDelete.Size = new Size(116, 47);
|
this.buttonDelete.Name = "buttonDelete";
|
||||||
buttonDelete.TabIndex = 2;
|
this.buttonDelete.Size = new System.Drawing.Size(102, 35);
|
||||||
buttonDelete.Text = "Удалить";
|
this.buttonDelete.TabIndex = 2;
|
||||||
buttonDelete.UseVisualStyleBackColor = true;
|
this.buttonDelete.Text = "Удалить";
|
||||||
buttonDelete.Click += ButtonDelete_Click;
|
this.buttonDelete.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonDelete.Click += new System.EventHandler(this.ButtonDelete_Click);
|
||||||
//
|
//
|
||||||
// buttonRefresh
|
// buttonRefresh
|
||||||
//
|
//
|
||||||
buttonRefresh.Location = new Point(641, 239);
|
this.buttonRefresh.Location = new System.Drawing.Point(561, 179);
|
||||||
buttonRefresh.Name = "buttonRefresh";
|
this.buttonRefresh.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
buttonRefresh.Size = new Size(116, 47);
|
this.buttonRefresh.Name = "buttonRefresh";
|
||||||
buttonRefresh.TabIndex = 3;
|
this.buttonRefresh.Size = new System.Drawing.Size(102, 35);
|
||||||
buttonRefresh.Text = "Обновить";
|
this.buttonRefresh.TabIndex = 3;
|
||||||
buttonRefresh.UseVisualStyleBackColor = true;
|
this.buttonRefresh.Text = "Обновить";
|
||||||
buttonRefresh.Click += ButtonRefresh_Click;
|
this.buttonRefresh.UseVisualStyleBackColor = true;
|
||||||
|
this.buttonRefresh.Click += new System.EventHandler(this.ButtonRefresh_Click);
|
||||||
//
|
//
|
||||||
// dataGridView
|
// dataGridView
|
||||||
//
|
//
|
||||||
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||||
dataGridView.Location = new Point(12, 12);
|
this.dataGridView.Location = new System.Drawing.Point(10, 9);
|
||||||
dataGridView.Name = "dataGridView";
|
this.dataGridView.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
dataGridView.RowHeadersWidth = 51;
|
this.dataGridView.Name = "dataGridView";
|
||||||
dataGridView.RowTemplate.Height = 29;
|
this.dataGridView.RowHeadersWidth = 51;
|
||||||
dataGridView.Size = new Size(604, 426);
|
this.dataGridView.RowTemplate.Height = 29;
|
||||||
dataGridView.TabIndex = 4;
|
this.dataGridView.Size = new System.Drawing.Size(528, 320);
|
||||||
|
this.dataGridView.TabIndex = 4;
|
||||||
//
|
//
|
||||||
// FormWorkPieces
|
// FormWorkPieces
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(8F, 20F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
ClientSize = new Size(781, 450);
|
this.ClientSize = new System.Drawing.Size(683, 338);
|
||||||
Controls.Add(dataGridView);
|
this.Controls.Add(this.dataGridView);
|
||||||
Controls.Add(buttonRefresh);
|
this.Controls.Add(this.buttonRefresh);
|
||||||
Controls.Add(buttonDelete);
|
this.Controls.Add(this.buttonDelete);
|
||||||
Controls.Add(buttonUpdate);
|
this.Controls.Add(this.buttonUpdate);
|
||||||
Controls.Add(buttonAdd);
|
this.Controls.Add(this.buttonAdd);
|
||||||
Name = "FormWorkPieces";
|
this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
|
||||||
Text = "Заготовки";
|
this.Name = "FormWorkPieces";
|
||||||
Load += FormWorkPiece_Load;
|
this.Text = "Заготовки";
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
this.Load += new System.EventHandler(this.FormWorkPiece_Load);
|
||||||
ResumeLayout(false);
|
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
@ -1,64 +1,4 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<root>
|
||||||
<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: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:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||||
<xsd:element name="root" msdata:IsDataSet="true">
|
<xsd:element name="root" msdata:IsDataSet="true">
|
||||||
|
Loading…
Reference in New Issue
Block a user