diff --git a/CarpentryWorkshop/CarpentryWorkshopView/Form1.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/Form1.Designer.cs
deleted file mode 100644
index 3a5ab7e..0000000
--- a/CarpentryWorkshop/CarpentryWorkshopView/Form1.Designer.cs
+++ /dev/null
@@ -1,39 +0,0 @@
-namespace CarpentryWorkshopView
-{
- partial class Form1
- {
- ///
- /// Required designer variable.
- ///
- private System.ComponentModel.IContainer components = null;
-
- ///
- /// Clean up any resources being used.
- ///
- /// true if managed resources should be disposed; otherwise, false.
- protected override void Dispose(bool disposing)
- {
- if (disposing && (components != null))
- {
- components.Dispose();
- }
- base.Dispose(disposing);
- }
-
- #region Windows Form Designer generated code
-
- ///
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- ///
- private void InitializeComponent()
- {
- this.components = new System.ComponentModel.Container();
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(800, 450);
- this.Text = "Form1";
- }
-
- #endregion
- }
-}
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/Form1.cs b/CarpentryWorkshop/CarpentryWorkshopView/Form1.cs
deleted file mode 100644
index 288756f..0000000
--- a/CarpentryWorkshop/CarpentryWorkshopView/Form1.cs
+++ /dev/null
@@ -1,10 +0,0 @@
-namespace CarpentryWorkshopView
-{
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- }
-}
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/Form1.resx b/CarpentryWorkshop/CarpentryWorkshopView/Form1.resx
deleted file mode 100644
index 1af7de1..0000000
--- a/CarpentryWorkshop/CarpentryWorkshopView/Form1.resx
+++ /dev/null
@@ -1,120 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 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
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.Designer.cs
index df40fe6..7012a0b 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.Designer.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.Designer.cs
@@ -28,83 +28,82 @@
///
private void InitializeComponent()
{
- this.ButtonSave = new System.Windows.Forms.Button();
- this.ButtonCancel = new System.Windows.Forms.Button();
- this.label1 = new System.Windows.Forms.Label();
- this.textBoxName = new System.Windows.Forms.TextBox();
- this.textBoxCost = new System.Windows.Forms.TextBox();
- this.label2 = new System.Windows.Forms.Label();
- this.SuspendLayout();
+ ButtonSave = new Button();
+ ButtonCancel = new Button();
+ label1 = new Label();
+ textBoxName = new TextBox();
+ textBoxCost = new TextBox();
+ label2 = new Label();
+ SuspendLayout();
//
// ButtonSave
//
- this.ButtonSave.Location = new System.Drawing.Point(135, 77);
- this.ButtonSave.Name = "ButtonSave";
- this.ButtonSave.Size = new System.Drawing.Size(86, 23);
- this.ButtonSave.TabIndex = 0;
- this.ButtonSave.Text = "Сохранение";
- this.ButtonSave.UseVisualStyleBackColor = true;
- this.ButtonSave.Click += new System.EventHandler(this.ButtonSave_Click);
+ ButtonSave.Location = new Point(135, 77);
+ ButtonSave.Name = "ButtonSave";
+ ButtonSave.Size = new Size(86, 23);
+ ButtonSave.TabIndex = 0;
+ ButtonSave.Text = "Сохранение";
+ ButtonSave.UseVisualStyleBackColor = true;
+ ButtonSave.Click += ButtonSave_Click;
//
// ButtonCancel
//
- this.ButtonCancel.Location = new System.Drawing.Point(227, 77);
- this.ButtonCancel.Name = "ButtonCancel";
- this.ButtonCancel.Size = new System.Drawing.Size(75, 23);
- this.ButtonCancel.TabIndex = 1;
- this.ButtonCancel.Text = "Отмена";
- this.ButtonCancel.UseVisualStyleBackColor = true;
- this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
+ ButtonCancel.Location = new Point(227, 77);
+ ButtonCancel.Name = "ButtonCancel";
+ ButtonCancel.Size = new Size(75, 23);
+ ButtonCancel.TabIndex = 1;
+ ButtonCancel.Text = "Отмена";
+ ButtonCancel.UseVisualStyleBackColor = true;
+ ButtonCancel.Click += ButtonCancel_Click;
//
// label1
//
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(12, 15);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(62, 15);
- this.label1.TabIndex = 2;
- this.label1.Text = "Название:";
+ label1.AutoSize = true;
+ label1.Location = new Point(12, 15);
+ label1.Name = "label1";
+ label1.Size = new Size(62, 15);
+ label1.TabIndex = 2;
+ label1.Text = "Название:";
//
// textBoxName
//
- this.textBoxName.Location = new System.Drawing.Point(80, 12);
- this.textBoxName.Name = "textBoxName";
- this.textBoxName.Size = new System.Drawing.Size(222, 23);
- this.textBoxName.TabIndex = 3;
+ textBoxName.Location = new Point(80, 12);
+ textBoxName.Name = "textBoxName";
+ textBoxName.Size = new Size(222, 23);
+ textBoxName.TabIndex = 3;
//
// textBoxCost
//
- this.textBoxCost.Location = new System.Drawing.Point(80, 41);
- this.textBoxCost.Name = "textBoxCost";
- this.textBoxCost.Size = new System.Drawing.Size(222, 23);
- this.textBoxCost.TabIndex = 4;
+ textBoxCost.Location = new Point(80, 41);
+ textBoxCost.Name = "textBoxCost";
+ textBoxCost.Size = new Size(222, 23);
+ textBoxCost.TabIndex = 4;
//
// label2
//
- this.label2.AutoSize = true;
- this.label2.Location = new System.Drawing.Point(12, 41);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(38, 15);
- this.label2.TabIndex = 5;
- this.label2.Text = "Цена:";
+ label2.AutoSize = true;
+ label2.Location = new Point(12, 41);
+ label2.Name = "label2";
+ label2.Size = new Size(38, 15);
+ label2.TabIndex = 5;
+ label2.Text = "Цена:";
//
// FormComponent
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(311, 112);
- this.Controls.Add(this.label2);
- this.Controls.Add(this.textBoxCost);
- this.Controls.Add(this.textBoxName);
- this.Controls.Add(this.label1);
- this.Controls.Add(this.ButtonCancel);
- this.Controls.Add(this.ButtonSave);
- this.Name = "FormComponent";
- this.Text = "FormComponent";
- this.Load += new System.EventHandler(this.FormComponent_Load);
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(311, 112);
+ Controls.Add(label2);
+ Controls.Add(textBoxCost);
+ Controls.Add(textBoxName);
+ Controls.Add(label1);
+ Controls.Add(ButtonCancel);
+ Controls.Add(ButtonSave);
+ Name = "FormComponent";
+ Text = "Компонент";
+ Load += FormComponent_Load;
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.resx b/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.resx
index f298a7b..af32865 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.resx
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormComponent.resx
@@ -1,4 +1,64 @@
-
+
+
+
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.Designer.cs
index 9d08aab..ad3c229 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.Designer.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.Designer.cs
@@ -28,79 +28,79 @@
///
private void InitializeComponent()
{
- this.dataGridView = new System.Windows.Forms.DataGridView();
- this.ButtonAdd = new System.Windows.Forms.Button();
- this.ButtonUpd = new System.Windows.Forms.Button();
- this.ButtonDel = new System.Windows.Forms.Button();
- this.ButtonRef = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
- this.SuspendLayout();
+ dataGridView = new DataGridView();
+ ButtonAdd = new Button();
+ ButtonUpd = new Button();
+ ButtonDel = new Button();
+ ButtonRef = new Button();
+ ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
+ SuspendLayout();
//
// dataGridView
//
- this.dataGridView.BackgroundColor = System.Drawing.SystemColors.ControlLightLight;
- this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView.Location = new System.Drawing.Point(0, 0);
- this.dataGridView.Name = "dataGridView";
- this.dataGridView.RowTemplate.Height = 25;
- this.dataGridView.Size = new System.Drawing.Size(414, 426);
- this.dataGridView.TabIndex = 0;
+ dataGridView.BackgroundColor = SystemColors.ControlLightLight;
+ dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridView.Location = new Point(0, 0);
+ dataGridView.Name = "dataGridView";
+ dataGridView.RowTemplate.Height = 25;
+ dataGridView.Size = new Size(414, 426);
+ dataGridView.TabIndex = 0;
//
// ButtonAdd
//
- this.ButtonAdd.Location = new System.Drawing.Point(429, 12);
- this.ButtonAdd.Name = "ButtonAdd";
- this.ButtonAdd.Size = new System.Drawing.Size(101, 23);
- this.ButtonAdd.TabIndex = 1;
- this.ButtonAdd.Text = "Добавить";
- this.ButtonAdd.UseVisualStyleBackColor = true;
- this.ButtonAdd.Click += new System.EventHandler(this.ButtonAdd_Click);
+ ButtonAdd.Location = new Point(429, 12);
+ ButtonAdd.Name = "ButtonAdd";
+ ButtonAdd.Size = new Size(101, 23);
+ ButtonAdd.TabIndex = 1;
+ ButtonAdd.Text = "Добавить";
+ ButtonAdd.UseVisualStyleBackColor = true;
+ ButtonAdd.Click += ButtonAdd_Click;
//
// ButtonUpd
//
- this.ButtonUpd.Location = new System.Drawing.Point(429, 51);
- this.ButtonUpd.Name = "ButtonUpd";
- this.ButtonUpd.Size = new System.Drawing.Size(101, 23);
- this.ButtonUpd.TabIndex = 2;
- this.ButtonUpd.Text = "Изменить";
- this.ButtonUpd.UseVisualStyleBackColor = true;
- this.ButtonUpd.Click += new System.EventHandler(this.ButtonUpd_Click);
+ ButtonUpd.Location = new Point(429, 51);
+ ButtonUpd.Name = "ButtonUpd";
+ ButtonUpd.Size = new Size(101, 23);
+ ButtonUpd.TabIndex = 2;
+ ButtonUpd.Text = "Изменить";
+ ButtonUpd.UseVisualStyleBackColor = true;
+ ButtonUpd.Click += ButtonUpd_Click;
//
// ButtonDel
//
- this.ButtonDel.Location = new System.Drawing.Point(429, 91);
- this.ButtonDel.Name = "ButtonDel";
- this.ButtonDel.Size = new System.Drawing.Size(101, 23);
- this.ButtonDel.TabIndex = 3;
- this.ButtonDel.Text = "Удалить";
- this.ButtonDel.UseVisualStyleBackColor = true;
- this.ButtonDel.Click += new System.EventHandler(this.ButtonDel_Click);
+ ButtonDel.Location = new Point(429, 91);
+ ButtonDel.Name = "ButtonDel";
+ ButtonDel.Size = new Size(101, 23);
+ ButtonDel.TabIndex = 3;
+ ButtonDel.Text = "Удалить";
+ ButtonDel.UseVisualStyleBackColor = true;
+ ButtonDel.Click += ButtonDel_Click;
//
// ButtonRef
//
- this.ButtonRef.Location = new System.Drawing.Point(429, 133);
- this.ButtonRef.Name = "ButtonRef";
- this.ButtonRef.Size = new System.Drawing.Size(101, 23);
- this.ButtonRef.TabIndex = 4;
- this.ButtonRef.Text = "Обновить";
- this.ButtonRef.UseVisualStyleBackColor = true;
- this.ButtonRef.Click += new System.EventHandler(this.ButtonRef_Click);
+ ButtonRef.Location = new Point(429, 133);
+ ButtonRef.Name = "ButtonRef";
+ ButtonRef.Size = new Size(101, 23);
+ ButtonRef.TabIndex = 4;
+ ButtonRef.Text = "Обновить";
+ ButtonRef.UseVisualStyleBackColor = true;
+ ButtonRef.Click += ButtonRef_Click;
//
// FormComponents
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(542, 428);
- this.Controls.Add(this.ButtonRef);
- this.Controls.Add(this.ButtonDel);
- this.Controls.Add(this.ButtonUpd);
- this.Controls.Add(this.ButtonAdd);
- this.Controls.Add(this.dataGridView);
- this.Name = "FormComponents";
- this.Text = "Экипировка";
- this.Load += new System.EventHandler(this.FormComponents_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
- this.ResumeLayout(false);
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(542, 428);
+ Controls.Add(ButtonRef);
+ Controls.Add(ButtonDel);
+ Controls.Add(ButtonUpd);
+ Controls.Add(ButtonAdd);
+ Controls.Add(dataGridView);
+ Name = "FormComponents";
+ Text = "Компоненты";
+ Load += FormComponents_Load;
+ ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
+ ResumeLayout(false);
}
#endregion
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.resx b/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.resx
index 1af7de1..af32865 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.resx
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormComponents.resx
@@ -1,17 +1,17 @@
-
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.Designer.cs
index 6171571..50e4929 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.Designer.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.Designer.cs
@@ -28,106 +28,105 @@
///
private void InitializeComponent()
{
- this.labelWood = new System.Windows.Forms.Label();
- this.labelCount = new System.Windows.Forms.Label();
- this.labelSum = new System.Windows.Forms.Label();
- this.comboBoxWood = new System.Windows.Forms.ComboBox();
- this.textBoxCount = new System.Windows.Forms.TextBox();
- this.textBoxSum = new System.Windows.Forms.TextBox();
- this.ButtonSave = new System.Windows.Forms.Button();
- this.ButtonCancel = new System.Windows.Forms.Button();
- this.SuspendLayout();
+ labelWood = new Label();
+ labelCount = new Label();
+ labelSum = new Label();
+ comboBoxWood = new ComboBox();
+ textBoxCount = new TextBox();
+ textBoxSum = new TextBox();
+ ButtonSave = new Button();
+ ButtonCancel = new Button();
+ SuspendLayout();
//
// labelWood
//
- this.labelWood.AutoSize = true;
- this.labelWood.Location = new System.Drawing.Point(12, 8);
- this.labelWood.Name = "labelWood";
- this.labelWood.Size = new System.Drawing.Size(43, 15);
- this.labelWood.TabIndex = 0;
- this.labelWood.Text = "Набор";
+ labelWood.AutoSize = true;
+ labelWood.Location = new Point(12, 8);
+ labelWood.Name = "labelWood";
+ labelWood.Size = new Size(53, 15);
+ labelWood.TabIndex = 0;
+ labelWood.Text = "Изделие";
//
// labelCount
//
- this.labelCount.AutoSize = true;
- this.labelCount.Location = new System.Drawing.Point(12, 37);
- this.labelCount.Name = "labelCount";
- this.labelCount.Size = new System.Drawing.Size(72, 15);
- this.labelCount.TabIndex = 1;
- this.labelCount.Text = "Количество";
+ labelCount.AutoSize = true;
+ labelCount.Location = new Point(12, 37);
+ labelCount.Name = "labelCount";
+ labelCount.Size = new Size(72, 15);
+ labelCount.TabIndex = 1;
+ labelCount.Text = "Количество";
//
// labelSum
//
- this.labelSum.AutoSize = true;
- this.labelSum.Location = new System.Drawing.Point(12, 66);
- this.labelSum.Name = "labelSum";
- this.labelSum.Size = new System.Drawing.Size(45, 15);
- this.labelSum.TabIndex = 2;
- this.labelSum.Text = "Сумма";
+ labelSum.AutoSize = true;
+ labelSum.Location = new Point(12, 66);
+ labelSum.Name = "labelSum";
+ labelSum.Size = new Size(45, 15);
+ labelSum.TabIndex = 2;
+ labelSum.Text = "Сумма";
//
// comboBoxWood
//
- this.comboBoxWood.FormattingEnabled = true;
- this.comboBoxWood.Location = new System.Drawing.Point(121, 5);
- this.comboBoxWood.Name = "comboBoxWood";
- this.comboBoxWood.Size = new System.Drawing.Size(292, 23);
- this.comboBoxWood.TabIndex = 3;
- this.comboBoxWood.SelectedIndexChanged += new System.EventHandler(this.comboBoxWood_SelectedIndexChanged);
+ comboBoxWood.FormattingEnabled = true;
+ comboBoxWood.Location = new Point(121, 5);
+ comboBoxWood.Name = "comboBoxWood";
+ comboBoxWood.Size = new Size(292, 23);
+ comboBoxWood.TabIndex = 3;
+ comboBoxWood.SelectedIndexChanged += comboBoxWood_SelectedIndexChanged;
//
// textBoxCount
//
- this.textBoxCount.Location = new System.Drawing.Point(121, 34);
- this.textBoxCount.Name = "textBoxCount";
- this.textBoxCount.Size = new System.Drawing.Size(292, 23);
- this.textBoxCount.TabIndex = 4;
- this.textBoxCount.TextChanged += new System.EventHandler(this.textBoxCount_TextChanged);
+ textBoxCount.Location = new Point(121, 34);
+ textBoxCount.Name = "textBoxCount";
+ textBoxCount.Size = new Size(292, 23);
+ textBoxCount.TabIndex = 4;
+ textBoxCount.TextChanged += textBoxCount_TextChanged;
//
// textBoxSum
//
- this.textBoxSum.Location = new System.Drawing.Point(121, 63);
- this.textBoxSum.Name = "textBoxSum";
- this.textBoxSum.Size = new System.Drawing.Size(292, 23);
- this.textBoxSum.TabIndex = 5;
+ textBoxSum.Location = new Point(121, 63);
+ textBoxSum.Name = "textBoxSum";
+ textBoxSum.Size = new Size(292, 23);
+ textBoxSum.TabIndex = 5;
//
// ButtonSave
//
- this.ButtonSave.Location = new System.Drawing.Point(257, 92);
- this.ButtonSave.Name = "ButtonSave";
- this.ButtonSave.Size = new System.Drawing.Size(75, 23);
- this.ButtonSave.TabIndex = 6;
- this.ButtonSave.Text = "Сохранить";
- this.ButtonSave.UseVisualStyleBackColor = true;
- this.ButtonSave.Click += new System.EventHandler(this.ButtonSave_Click);
+ ButtonSave.Location = new Point(257, 92);
+ ButtonSave.Name = "ButtonSave";
+ ButtonSave.Size = new Size(75, 23);
+ ButtonSave.TabIndex = 6;
+ ButtonSave.Text = "Сохранить";
+ ButtonSave.UseVisualStyleBackColor = true;
+ ButtonSave.Click += ButtonSave_Click;
//
// ButtonCancel
//
- this.ButtonCancel.Location = new System.Drawing.Point(338, 92);
- this.ButtonCancel.Name = "ButtonCancel";
- this.ButtonCancel.Size = new System.Drawing.Size(75, 23);
- this.ButtonCancel.TabIndex = 7;
- this.ButtonCancel.Text = "Отмена";
- this.ButtonCancel.UseVisualStyleBackColor = true;
- this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
+ ButtonCancel.Location = new Point(338, 92);
+ ButtonCancel.Name = "ButtonCancel";
+ ButtonCancel.Size = new Size(75, 23);
+ ButtonCancel.TabIndex = 7;
+ ButtonCancel.Text = "Отмена";
+ ButtonCancel.UseVisualStyleBackColor = true;
+ ButtonCancel.Click += ButtonCancel_Click;
//
// FormCreateOrder
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(425, 126);
- this.Controls.Add(this.ButtonCancel);
- this.Controls.Add(this.ButtonSave);
- this.Controls.Add(this.textBoxSum);
- this.Controls.Add(this.textBoxCount);
- this.Controls.Add(this.comboBoxWood);
- this.Controls.Add(this.labelSum);
- this.Controls.Add(this.labelCount);
- this.Controls.Add(this.labelWood);
- this.Name = "FormCreateOrder";
- this.Text = "Заказ";
- this.Load += new System.EventHandler(this.FormCreateOrder_Load);
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(425, 126);
+ Controls.Add(ButtonCancel);
+ Controls.Add(ButtonSave);
+ Controls.Add(textBoxSum);
+ Controls.Add(textBoxCount);
+ Controls.Add(comboBoxWood);
+ Controls.Add(labelSum);
+ Controls.Add(labelCount);
+ Controls.Add(labelWood);
+ Name = "FormCreateOrder";
+ Text = "Заказ";
+ Load += FormCreateOrder_Load;
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.resx b/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.resx
index 1af7de1..af32865 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.resx
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormCreateOrder.resx
@@ -1,17 +1,17 @@
-
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWood.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormWood.Designer.cs
index 49db64b..1268bd9 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWood.Designer.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWood.Designer.cs
@@ -28,183 +28,179 @@
///
private void InitializeComponent()
{
- this.labelName = new System.Windows.Forms.Label();
- this.labelPrice = new System.Windows.Forms.Label();
- this.textBoxName = new System.Windows.Forms.TextBox();
- this.textBoxPrice = new System.Windows.Forms.TextBox();
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.dataGridView = new System.Windows.Forms.DataGridView();
- this.ButtonRef = new System.Windows.Forms.Button();
- this.ButtonDel = new System.Windows.Forms.Button();
- this.ButtonUpd = new System.Windows.Forms.Button();
- this.ButtonAdd = new System.Windows.Forms.Button();
- this.ButtonSave = new System.Windows.Forms.Button();
- this.ButtonCancel = new System.Windows.Forms.Button();
- this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.ComponentName = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.Count = new System.Windows.Forms.DataGridViewTextBoxColumn();
- this.groupBox1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
- this.SuspendLayout();
+ labelName = new Label();
+ labelPrice = new Label();
+ textBoxName = new TextBox();
+ textBoxPrice = new TextBox();
+ groupBox1 = new GroupBox();
+ dataGridView = new DataGridView();
+ ID = new DataGridViewTextBoxColumn();
+ ComponentName = new DataGridViewTextBoxColumn();
+ Count = new DataGridViewTextBoxColumn();
+ ButtonRef = new Button();
+ ButtonDel = new Button();
+ ButtonUpd = new Button();
+ ButtonAdd = new Button();
+ ButtonSave = new Button();
+ ButtonCancel = new Button();
+ groupBox1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
+ SuspendLayout();
//
// labelName
//
- this.labelName.AutoSize = true;
- this.labelName.Location = new System.Drawing.Point(12, 9);
- this.labelName.Name = "labelName";
- this.labelName.Size = new System.Drawing.Size(62, 15);
- this.labelName.TabIndex = 0;
- this.labelName.Text = "Название:";
+ labelName.AutoSize = true;
+ labelName.Location = new Point(12, 9);
+ labelName.Name = "labelName";
+ labelName.Size = new Size(62, 15);
+ labelName.TabIndex = 0;
+ labelName.Text = "Название:";
//
// labelPrice
//
- this.labelPrice.AutoSize = true;
- this.labelPrice.Location = new System.Drawing.Point(12, 41);
- this.labelPrice.Name = "labelPrice";
- this.labelPrice.Size = new System.Drawing.Size(38, 15);
- this.labelPrice.TabIndex = 1;
- this.labelPrice.Text = "Цена:";
+ labelPrice.AutoSize = true;
+ labelPrice.Location = new Point(12, 41);
+ labelPrice.Name = "labelPrice";
+ labelPrice.Size = new Size(38, 15);
+ labelPrice.TabIndex = 1;
+ labelPrice.Text = "Цена:";
//
// textBoxName
//
- this.textBoxName.Location = new System.Drawing.Point(94, 6);
- this.textBoxName.Name = "textBoxName";
- this.textBoxName.Size = new System.Drawing.Size(247, 23);
- this.textBoxName.TabIndex = 2;
+ textBoxName.Location = new Point(94, 6);
+ textBoxName.Name = "textBoxName";
+ textBoxName.Size = new Size(247, 23);
+ textBoxName.TabIndex = 2;
//
// textBoxPrice
//
- this.textBoxPrice.Location = new System.Drawing.Point(94, 38);
- this.textBoxPrice.Name = "textBoxPrice";
- this.textBoxPrice.Size = new System.Drawing.Size(100, 23);
- this.textBoxPrice.TabIndex = 3;
+ textBoxPrice.Location = new Point(94, 38);
+ textBoxPrice.Name = "textBoxPrice";
+ textBoxPrice.Size = new Size(100, 23);
+ textBoxPrice.TabIndex = 3;
//
// groupBox1
//
- this.groupBox1.Controls.Add(this.dataGridView);
- this.groupBox1.Controls.Add(this.ButtonRef);
- this.groupBox1.Controls.Add(this.ButtonDel);
- this.groupBox1.Controls.Add(this.ButtonUpd);
- this.groupBox1.Controls.Add(this.ButtonAdd);
- this.groupBox1.Location = new System.Drawing.Point(12, 67);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(510, 338);
- this.groupBox1.TabIndex = 4;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "Компонент";
+ groupBox1.Controls.Add(dataGridView);
+ groupBox1.Controls.Add(ButtonRef);
+ groupBox1.Controls.Add(ButtonDel);
+ groupBox1.Controls.Add(ButtonUpd);
+ groupBox1.Controls.Add(ButtonAdd);
+ groupBox1.Location = new Point(12, 67);
+ groupBox1.Name = "groupBox1";
+ groupBox1.Size = new Size(510, 338);
+ groupBox1.TabIndex = 4;
+ groupBox1.TabStop = false;
+ groupBox1.Text = "Компонент";
//
// dataGridView
//
- this.dataGridView.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
- this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
- this.ID,
- this.ComponentName,
- this.Count});
- this.dataGridView.Location = new System.Drawing.Point(0, 21);
- this.dataGridView.Name = "dataGridView";
- this.dataGridView.RowTemplate.Height = 25;
- this.dataGridView.Size = new System.Drawing.Size(394, 311);
- this.dataGridView.TabIndex = 5;
- //
- // ButtonRef
- //
- this.ButtonRef.Location = new System.Drawing.Point(400, 169);
- this.ButtonRef.Name = "ButtonRef";
- this.ButtonRef.Size = new System.Drawing.Size(106, 28);
- this.ButtonRef.TabIndex = 4;
- this.ButtonRef.Text = "Обновить";
- this.ButtonRef.UseVisualStyleBackColor = true;
- this.ButtonRef.Click += new System.EventHandler(this.ButtonRef_Click);
- //
- // ButtonDel
- //
- this.ButtonDel.Location = new System.Drawing.Point(400, 135);
- this.ButtonDel.Name = "ButtonDel";
- this.ButtonDel.Size = new System.Drawing.Size(106, 28);
- this.ButtonDel.TabIndex = 3;
- this.ButtonDel.Text = "Удалить";
- this.ButtonDel.UseVisualStyleBackColor = true;
- this.ButtonDel.Click += new System.EventHandler(this.ButtonDel_Click);
- //
- // ButtonUpd
- //
- this.ButtonUpd.Location = new System.Drawing.Point(400, 101);
- this.ButtonUpd.Name = "ButtonUpd";
- this.ButtonUpd.Size = new System.Drawing.Size(106, 28);
- this.ButtonUpd.TabIndex = 2;
- this.ButtonUpd.Text = "Изменить";
- this.ButtonUpd.UseVisualStyleBackColor = true;
- this.ButtonUpd.Click += new System.EventHandler(this.ButtonUpd_Click);
- //
- // ButtonAdd
- //
- this.ButtonAdd.Location = new System.Drawing.Point(400, 67);
- this.ButtonAdd.Name = "ButtonAdd";
- this.ButtonAdd.Size = new System.Drawing.Size(106, 28);
- this.ButtonAdd.TabIndex = 1;
- this.ButtonAdd.Text = "Добавить";
- this.ButtonAdd.UseVisualStyleBackColor = true;
- this.ButtonAdd.Click += new System.EventHandler(this.ButtonAdd_Click);
- //
- // ButtonSave
- //
- this.ButtonSave.Location = new System.Drawing.Point(354, 415);
- this.ButtonSave.Name = "ButtonSave";
- this.ButtonSave.Size = new System.Drawing.Size(75, 23);
- this.ButtonSave.TabIndex = 5;
- this.ButtonSave.Text = "Сохранить";
- this.ButtonSave.UseVisualStyleBackColor = true;
- this.ButtonSave.Click += new System.EventHandler(this.ButtonSave_Click);
- //
- // ButtonCancel
- //
- this.ButtonCancel.Location = new System.Drawing.Point(435, 415);
- this.ButtonCancel.Name = "ButtonCancel";
- this.ButtonCancel.Size = new System.Drawing.Size(75, 23);
- this.ButtonCancel.TabIndex = 6;
- this.ButtonCancel.Text = "Отмена";
- this.ButtonCancel.UseVisualStyleBackColor = true;
- this.ButtonCancel.Click += new System.EventHandler(this.ButtonCancel_Click);
+ dataGridView.BackgroundColor = SystemColors.ButtonHighlight;
+ dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridView.Columns.AddRange(new DataGridViewColumn[] { ID, ComponentName, Count });
+ dataGridView.Location = new Point(0, 21);
+ dataGridView.Name = "dataGridView";
+ dataGridView.RowTemplate.Height = 25;
+ dataGridView.Size = new Size(394, 311);
+ dataGridView.TabIndex = 5;
//
// ID
//
- this.ID.HeaderText = "Id";
- this.ID.Name = "ID";
- this.ID.Visible = false;
- this.ID.Width = 250;
+ ID.HeaderText = "Id";
+ ID.Name = "ID";
+ ID.Visible = false;
+ ID.Width = 250;
//
// ComponentName
//
- this.ComponentName.HeaderText = "Компоненте";
- this.ComponentName.Name = "ComponentName";
- this.ComponentName.Width = 250;
+ ComponentName.HeaderText = "Компоненте";
+ ComponentName.Name = "ComponentName";
+ ComponentName.Width = 250;
//
// Count
//
- this.Count.HeaderText = "Количество";
- this.Count.Name = "Count";
+ Count.HeaderText = "Количество";
+ Count.Name = "Count";
+ //
+ // ButtonRef
+ //
+ ButtonRef.Location = new Point(400, 169);
+ ButtonRef.Name = "ButtonRef";
+ ButtonRef.Size = new Size(106, 28);
+ ButtonRef.TabIndex = 4;
+ ButtonRef.Text = "Обновить";
+ ButtonRef.UseVisualStyleBackColor = true;
+ ButtonRef.Click += ButtonRef_Click;
+ //
+ // ButtonDel
+ //
+ ButtonDel.Location = new Point(400, 135);
+ ButtonDel.Name = "ButtonDel";
+ ButtonDel.Size = new Size(106, 28);
+ ButtonDel.TabIndex = 3;
+ ButtonDel.Text = "Удалить";
+ ButtonDel.UseVisualStyleBackColor = true;
+ ButtonDel.Click += ButtonDel_Click;
+ //
+ // ButtonUpd
+ //
+ ButtonUpd.Location = new Point(400, 101);
+ ButtonUpd.Name = "ButtonUpd";
+ ButtonUpd.Size = new Size(106, 28);
+ ButtonUpd.TabIndex = 2;
+ ButtonUpd.Text = "Изменить";
+ ButtonUpd.UseVisualStyleBackColor = true;
+ ButtonUpd.Click += ButtonUpd_Click;
+ //
+ // ButtonAdd
+ //
+ ButtonAdd.Location = new Point(400, 67);
+ ButtonAdd.Name = "ButtonAdd";
+ ButtonAdd.Size = new Size(106, 28);
+ ButtonAdd.TabIndex = 1;
+ ButtonAdd.Text = "Добавить";
+ ButtonAdd.UseVisualStyleBackColor = true;
+ ButtonAdd.Click += ButtonAdd_Click;
+ //
+ // ButtonSave
+ //
+ ButtonSave.Location = new Point(354, 415);
+ ButtonSave.Name = "ButtonSave";
+ ButtonSave.Size = new Size(75, 23);
+ ButtonSave.TabIndex = 5;
+ ButtonSave.Text = "Сохранить";
+ ButtonSave.UseVisualStyleBackColor = true;
+ ButtonSave.Click += ButtonSave_Click;
+ //
+ // ButtonCancel
+ //
+ ButtonCancel.Location = new Point(435, 415);
+ ButtonCancel.Name = "ButtonCancel";
+ ButtonCancel.Size = new Size(75, 23);
+ ButtonCancel.TabIndex = 6;
+ ButtonCancel.Text = "Отмена";
+ ButtonCancel.UseVisualStyleBackColor = true;
+ ButtonCancel.Click += ButtonCancel_Click;
//
// FormWood
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(536, 450);
- this.Controls.Add(this.ButtonCancel);
- this.Controls.Add(this.ButtonSave);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.textBoxPrice);
- this.Controls.Add(this.textBoxName);
- this.Controls.Add(this.labelPrice);
- this.Controls.Add(this.labelName);
- this.Name = "FormWood";
- this.Text = "Создание набора";
- this.Load += new System.EventHandler(this.FormWood_Load);
- this.groupBox1.ResumeLayout(false);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(536, 450);
+ Controls.Add(ButtonCancel);
+ Controls.Add(ButtonSave);
+ Controls.Add(groupBox1);
+ Controls.Add(textBoxPrice);
+ Controls.Add(textBoxName);
+ Controls.Add(labelPrice);
+ Controls.Add(labelName);
+ Name = "FormWood";
+ Text = "Создание изделия";
+ Load += FormWood_Load;
+ groupBox1.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWood.resx b/CarpentryWorkshop/CarpentryWorkshopView/FormWood.resx
index 1af7de1..af32865 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWood.resx
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWood.resx
@@ -1,17 +1,17 @@
-
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.Designer.cs
index ed2d6dd..da9a366 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.Designer.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.Designer.cs
@@ -28,84 +28,84 @@
///
private void InitializeComponent()
{
- this.labelComponent = new System.Windows.Forms.Label();
- this.labelCount = new System.Windows.Forms.Label();
- this.textBoxCount = new System.Windows.Forms.TextBox();
- this.comboBoxComponent = new System.Windows.Forms.ComboBox();
- this.buttonCancel = new System.Windows.Forms.Button();
- this.buttonSave = new System.Windows.Forms.Button();
- this.SuspendLayout();
+ labelComponent = new Label();
+ labelCount = new Label();
+ textBoxCount = new TextBox();
+ comboBoxComponent = new ComboBox();
+ buttonCancel = new Button();
+ buttonSave = new Button();
+ SuspendLayout();
//
// labelComponent
//
- this.labelComponent.AutoSize = true;
- this.labelComponent.Location = new System.Drawing.Point(12, 9);
- this.labelComponent.Name = "labelComponent";
- this.labelComponent.Size = new System.Drawing.Size(76, 15);
- this.labelComponent.TabIndex = 0;
- this.labelComponent.Text = "Экипировка:";
+ labelComponent.AutoSize = true;
+ labelComponent.Location = new Point(12, 9);
+ labelComponent.Name = "labelComponent";
+ labelComponent.Size = new Size(72, 15);
+ labelComponent.TabIndex = 0;
+ labelComponent.Text = "Компонент:";
+ labelComponent.Click += labelComponent_Click;
//
// labelCount
//
- this.labelCount.AutoSize = true;
- this.labelCount.Location = new System.Drawing.Point(12, 37);
- this.labelCount.Name = "labelCount";
- this.labelCount.Size = new System.Drawing.Size(75, 15);
- this.labelCount.TabIndex = 1;
- this.labelCount.Text = "Количество:";
+ labelCount.AutoSize = true;
+ labelCount.Location = new Point(12, 37);
+ labelCount.Name = "labelCount";
+ labelCount.Size = new Size(75, 15);
+ labelCount.TabIndex = 1;
+ labelCount.Text = "Количество:";
//
// textBoxCount
//
- this.textBoxCount.Location = new System.Drawing.Point(90, 34);
- this.textBoxCount.Name = "textBoxCount";
- this.textBoxCount.Size = new System.Drawing.Size(235, 23);
- this.textBoxCount.TabIndex = 3;
+ textBoxCount.Location = new Point(90, 34);
+ textBoxCount.Name = "textBoxCount";
+ textBoxCount.Size = new Size(235, 23);
+ textBoxCount.TabIndex = 3;
//
// comboBoxComponent
//
- this.comboBoxComponent.BackColor = System.Drawing.SystemColors.Window;
- this.comboBoxComponent.FormattingEnabled = true;
- this.comboBoxComponent.Location = new System.Drawing.Point(90, 6);
- this.comboBoxComponent.Name = "comboBoxComponent";
- this.comboBoxComponent.Size = new System.Drawing.Size(235, 23);
- this.comboBoxComponent.TabIndex = 4;
+ comboBoxComponent.BackColor = SystemColors.Window;
+ comboBoxComponent.FormattingEnabled = true;
+ comboBoxComponent.Location = new Point(90, 6);
+ comboBoxComponent.Name = "comboBoxComponent";
+ comboBoxComponent.Size = new Size(235, 23);
+ comboBoxComponent.TabIndex = 4;
//
// buttonCancel
//
- this.buttonCancel.Location = new System.Drawing.Point(248, 63);
- this.buttonCancel.Name = "buttonCancel";
- this.buttonCancel.Size = new System.Drawing.Size(75, 23);
- this.buttonCancel.TabIndex = 5;
- this.buttonCancel.Text = "Отмена";
- this.buttonCancel.UseVisualStyleBackColor = true;
- this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
+ buttonCancel.Location = new Point(248, 63);
+ buttonCancel.Name = "buttonCancel";
+ buttonCancel.Size = new Size(75, 23);
+ buttonCancel.TabIndex = 5;
+ buttonCancel.Text = "Отмена";
+ buttonCancel.UseVisualStyleBackColor = true;
+ buttonCancel.Click += buttonCancel_Click;
//
// buttonSave
//
- this.buttonSave.Location = new System.Drawing.Point(167, 63);
- this.buttonSave.Name = "buttonSave";
- this.buttonSave.Size = new System.Drawing.Size(75, 23);
- this.buttonSave.TabIndex = 6;
- this.buttonSave.Text = "Сохранить";
- this.buttonSave.UseVisualStyleBackColor = true;
- this.buttonSave.Click += new System.EventHandler(this.buttonSave_Click);
+ buttonSave.Location = new Point(167, 63);
+ buttonSave.Name = "buttonSave";
+ buttonSave.Size = new Size(75, 23);
+ buttonSave.TabIndex = 6;
+ buttonSave.Text = "Сохранить";
+ buttonSave.UseVisualStyleBackColor = true;
+ buttonSave.Click += buttonSave_Click;
//
// FormWoodComponent
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(337, 97);
- this.Controls.Add(this.buttonSave);
- this.Controls.Add(this.buttonCancel);
- this.Controls.Add(this.comboBoxComponent);
- this.Controls.Add(this.textBoxCount);
- this.Controls.Add(this.labelCount);
- this.Controls.Add(this.labelComponent);
- this.Name = "FormWoodComponent";
- this.Text = "экипировка набора";
- this.ResumeLayout(false);
- this.PerformLayout();
-
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(337, 97);
+ Controls.Add(buttonSave);
+ Controls.Add(buttonCancel);
+ Controls.Add(comboBoxComponent);
+ Controls.Add(textBoxCount);
+ Controls.Add(labelCount);
+ Controls.Add(labelComponent);
+ Name = "FormWoodComponent";
+ Text = "Компонент";
+ ResumeLayout(false);
+ PerformLayout();
}
#endregion
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.cs
index 9852882..f0573da 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.cs
@@ -68,5 +68,10 @@ namespace CarpentryWorkshopView
DialogResult = DialogResult.Cancel;
Close();
}
+
+ private void labelComponent_Click(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.resx b/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.resx
index 1af7de1..af32865 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.resx
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWoodComponent.resx
@@ -1,17 +1,17 @@
-
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.Designer.cs b/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.Designer.cs
index 06e908f..2fb231f 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.Designer.cs
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.Designer.cs
@@ -28,80 +28,79 @@
///
private void InitializeComponent()
{
- this.dataGridView = new System.Windows.Forms.DataGridView();
- this.ButtonAdd = new System.Windows.Forms.Button();
- this.ButtonUpd = new System.Windows.Forms.Button();
- this.ButtonDel = new System.Windows.Forms.Button();
- this.ButtonRef = new System.Windows.Forms.Button();
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
- this.SuspendLayout();
+ dataGridView = new DataGridView();
+ ButtonAdd = new Button();
+ ButtonUpd = new Button();
+ ButtonDel = new Button();
+ ButtonRef = new Button();
+ ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
+ SuspendLayout();
//
// dataGridView
//
- this.dataGridView.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
- this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- this.dataGridView.Location = new System.Drawing.Point(0, 0);
- this.dataGridView.Name = "dataGridView";
- this.dataGridView.RowTemplate.Height = 25;
- this.dataGridView.Size = new System.Drawing.Size(509, 448);
- this.dataGridView.TabIndex = 0;
+ dataGridView.BackgroundColor = SystemColors.ButtonHighlight;
+ dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridView.Location = new Point(0, 0);
+ dataGridView.Name = "dataGridView";
+ dataGridView.RowTemplate.Height = 25;
+ dataGridView.Size = new Size(509, 448);
+ dataGridView.TabIndex = 0;
//
// ButtonAdd
//
- this.ButtonAdd.Location = new System.Drawing.Point(526, 12);
- this.ButtonAdd.Name = "ButtonAdd";
- this.ButtonAdd.Size = new System.Drawing.Size(127, 23);
- this.ButtonAdd.TabIndex = 1;
- this.ButtonAdd.Text = "Добавить";
- this.ButtonAdd.UseVisualStyleBackColor = true;
- this.ButtonAdd.Click += new System.EventHandler(this.ButtonAdd_Click);
+ ButtonAdd.Location = new Point(526, 12);
+ ButtonAdd.Name = "ButtonAdd";
+ ButtonAdd.Size = new Size(127, 23);
+ ButtonAdd.TabIndex = 1;
+ ButtonAdd.Text = "Добавить";
+ ButtonAdd.UseVisualStyleBackColor = true;
+ ButtonAdd.Click += ButtonAdd_Click;
//
// ButtonUpd
//
- this.ButtonUpd.Location = new System.Drawing.Point(526, 41);
- this.ButtonUpd.Name = "ButtonUpd";
- this.ButtonUpd.Size = new System.Drawing.Size(127, 23);
- this.ButtonUpd.TabIndex = 2;
- this.ButtonUpd.Text = "Изменить";
- this.ButtonUpd.UseVisualStyleBackColor = true;
- this.ButtonUpd.Click += new System.EventHandler(this.ButtonUpd_Click);
+ ButtonUpd.Location = new Point(526, 41);
+ ButtonUpd.Name = "ButtonUpd";
+ ButtonUpd.Size = new Size(127, 23);
+ ButtonUpd.TabIndex = 2;
+ ButtonUpd.Text = "Изменить";
+ ButtonUpd.UseVisualStyleBackColor = true;
+ ButtonUpd.Click += ButtonUpd_Click;
//
// ButtonDel
//
- this.ButtonDel.Location = new System.Drawing.Point(526, 70);
- this.ButtonDel.Name = "ButtonDel";
- this.ButtonDel.Size = new System.Drawing.Size(127, 23);
- this.ButtonDel.TabIndex = 3;
- this.ButtonDel.Text = "Удалить";
- this.ButtonDel.UseVisualStyleBackColor = true;
- this.ButtonDel.Click += new System.EventHandler(this.ButtonDel_Click);
+ ButtonDel.Location = new Point(526, 70);
+ ButtonDel.Name = "ButtonDel";
+ ButtonDel.Size = new Size(127, 23);
+ ButtonDel.TabIndex = 3;
+ ButtonDel.Text = "Удалить";
+ ButtonDel.UseVisualStyleBackColor = true;
+ ButtonDel.Click += ButtonDel_Click;
//
// ButtonRef
//
- this.ButtonRef.Location = new System.Drawing.Point(526, 99);
- this.ButtonRef.Name = "ButtonRef";
- this.ButtonRef.Size = new System.Drawing.Size(127, 23);
- this.ButtonRef.TabIndex = 4;
- this.ButtonRef.Text = "Обновить";
- this.ButtonRef.UseVisualStyleBackColor = true;
- this.ButtonRef.Click += new System.EventHandler(this.ButtonRef_Click);
+ ButtonRef.Location = new Point(526, 99);
+ ButtonRef.Name = "ButtonRef";
+ ButtonRef.Size = new Size(127, 23);
+ ButtonRef.TabIndex = 4;
+ ButtonRef.Text = "Обновить";
+ ButtonRef.UseVisualStyleBackColor = true;
+ ButtonRef.Click += ButtonRef_Click;
//
// FormWoods
//
- this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.ClientSize = new System.Drawing.Size(668, 450);
- this.Controls.Add(this.ButtonRef);
- this.Controls.Add(this.ButtonDel);
- this.Controls.Add(this.ButtonUpd);
- this.Controls.Add(this.ButtonAdd);
- this.Controls.Add(this.dataGridView);
- this.Name = "FormWoods";
- this.Text = "Набор";
- this.Load += new System.EventHandler(this.FormWoods_Load);
- ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
- this.ResumeLayout(false);
-
+ AutoScaleDimensions = new SizeF(7F, 15F);
+ AutoScaleMode = AutoScaleMode.Font;
+ ClientSize = new Size(668, 450);
+ Controls.Add(ButtonRef);
+ Controls.Add(ButtonDel);
+ Controls.Add(ButtonUpd);
+ Controls.Add(ButtonAdd);
+ Controls.Add(dataGridView);
+ Name = "FormWoods";
+ Text = "Изделия";
+ Load += FormWoods_Load;
+ ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
+ ResumeLayout(false);
}
#endregion
diff --git a/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.resx b/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.resx
index f298a7b..af32865 100644
--- a/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.resx
+++ b/CarpentryWorkshop/CarpentryWorkshopView/FormWoods.resx
@@ -1,4 +1,64 @@
-
+
+
+