From 1fc37afcb68ea77e4244c8a806d1eacbbe4da310 Mon Sep 17 00:00:00 2001 From: Artyom_Yashin Date: Mon, 12 Feb 2024 19:52:24 +0400 Subject: [PATCH] =?UTF-8?q?=D0=92=D0=B5=D1=87=D0=B5=D1=80=20=D1=82=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D0=B6=D0=B5=20=D0=B4=D0=BD=D1=8F.=20=D0=9A?= =?UTF-8?q?=D0=BE=D0=BB=D0=B5=D1=81=D0=BE=20=D1=81=D0=B0=D0=BD=D1=81=D0=B0?= =?UTF-8?q?=D1=80=D1=8B=20=D1=81=D0=BE=D0=B2=D0=B5=D1=80=D1=88=D0=B8=D0=BB?= =?UTF-8?q?=D0=BE=20=D0=BE=D0=B1=D0=BE=D1=80=D0=BE=D1=82.=20=D0=93=D0=BB?= =?UTF-8?q?=D1=83=D0=BF=D1=8B=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8?= =?UTF-8?q?,=20=D0=B2=D0=BB=D0=B5=D0=BA=D1=83=D1=89=D0=B8=D0=B5=20=D0=B7?= =?UTF-8?q?=D0=B0=20=D1=81=D0=BE=D0=B1=D0=BE=D0=B9=20=D1=81=D0=B5=D1=80?= =?UTF-8?q?=D1=8C=D0=B5=D0=B7=D0=BD=D1=8B=D0=B5=20=D0=BF=D0=BE=D1=81=D0=BB?= =?UTF-8?q?=D0=B5=D0=B4=D1=81=D1=82=D0=B2=D0=B8=D1=8F.=20=D0=90=20=D0=BA?= =?UTF-8?q?=D0=B0=D0=BA=20=D0=B8=D0=BD=D0=B0=D1=87=D0=B5,=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=B3=D0=B4=D0=B0=20=D0=BA=D0=B0=D0=B6=D0=B4=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=B1=D0=B0=D0=BB=D0=BB=20=D0=BD=D0=B0=20=D1=81=D1=87=D0=B5?= =?UTF-8?q?=D1=82=D1=83...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComputersShop/FormSupply.Designer.cs | 48 ++++++++++++++++--- ComputersShop/ComputersShop/FormSupply.cs | 2 +- 2 files changed, 43 insertions(+), 7 deletions(-) diff --git a/ComputersShop/ComputersShop/FormSupply.Designer.cs b/ComputersShop/ComputersShop/FormSupply.Designer.cs index 6a51fd3..96a26b4 100644 --- a/ComputersShop/ComputersShop/FormSupply.Designer.cs +++ b/ComputersShop/ComputersShop/FormSupply.Designer.cs @@ -33,13 +33,16 @@ CountTextBox = new TextBox(); SaveButton = new Button(); CancelButton = new Button(); + labelShop = new Label(); + labelComputer = new Label(); + labelCount = new Label(); SuspendLayout(); // // ShopComboBox // ShopComboBox.DropDownStyle = ComboBoxStyle.DropDownList; ShopComboBox.FormattingEnabled = true; - ShopComboBox.Location = new Point(14, 16); + ShopComboBox.Location = new Point(176, 21); ShopComboBox.Margin = new Padding(3, 4, 3, 4); ShopComboBox.Name = "ShopComboBox"; ShopComboBox.Size = new Size(378, 28); @@ -49,7 +52,7 @@ // ComputerComboBox.DropDownStyle = ComboBoxStyle.DropDownList; ComputerComboBox.FormattingEnabled = true; - ComputerComboBox.Location = new Point(14, 55); + ComputerComboBox.Location = new Point(176, 60); ComputerComboBox.Margin = new Padding(3, 4, 3, 4); ComputerComboBox.Name = "ComputerComboBox"; ComputerComboBox.Size = new Size(378, 28); @@ -57,7 +60,7 @@ // // CountTextBox // - CountTextBox.Location = new Point(14, 93); + CountTextBox.Location = new Point(176, 98); CountTextBox.Margin = new Padding(3, 4, 3, 4); CountTextBox.Name = "CountTextBox"; CountTextBox.Size = new Size(378, 27); @@ -65,7 +68,7 @@ // // SaveButton // - SaveButton.Location = new Point(214, 132); + SaveButton.Location = new Point(376, 137); SaveButton.Margin = new Padding(3, 4, 3, 4); SaveButton.Name = "SaveButton"; SaveButton.Size = new Size(86, 31); @@ -76,7 +79,7 @@ // // CancelButton // - CancelButton.Location = new Point(306, 132); + CancelButton.Location = new Point(468, 137); CancelButton.Margin = new Padding(3, 4, 3, 4); CancelButton.Name = "CancelButton"; CancelButton.Size = new Size(86, 31); @@ -85,11 +88,41 @@ CancelButton.UseVisualStyleBackColor = true; CancelButton.Click += CancelButton_Click; // + // labelShop + // + labelShop.AutoSize = true; + labelShop.Location = new Point(40, 24); + labelShop.Name = "labelShop"; + labelShop.Size = new Size(69, 20); + labelShop.TabIndex = 5; + labelShop.Text = "Магазин"; + // + // labelComputer + // + labelComputer.AutoSize = true; + labelComputer.Location = new Point(40, 63); + labelComputer.Name = "labelComputer"; + labelComputer.Size = new Size(90, 20); + labelComputer.TabIndex = 6; + labelComputer.Text = "Компьютер"; + // + // labelCount + // + labelCount.AutoSize = true; + labelCount.Location = new Point(40, 101); + labelCount.Name = "labelCount"; + labelCount.Size = new Size(90, 20); + labelCount.TabIndex = 7; + labelCount.Text = "Количество"; + // // FormSupply // AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(406, 181); + ClientSize = new Size(607, 181); + Controls.Add(labelCount); + Controls.Add(labelComputer); + Controls.Add(labelShop); Controls.Add(CancelButton); Controls.Add(SaveButton); Controls.Add(CountTextBox); @@ -109,5 +142,8 @@ private TextBox CountTextBox; private Button SaveButton; private Button CancelButton; + private Label labelShop; + private Label labelComputer; + private Label labelCount; } } \ No newline at end of file diff --git a/ComputersShop/ComputersShop/FormSupply.cs b/ComputersShop/ComputersShop/FormSupply.cs index 9e3b534..7986576 100644 --- a/ComputersShop/ComputersShop/FormSupply.cs +++ b/ComputersShop/ComputersShop/FormSupply.cs @@ -104,7 +104,7 @@ namespace ComputersShop } if (ComputerComboBox.SelectedValue == null) { - MessageBox.Show("Выберите мороженное", "Ошибка", + MessageBox.Show("Выберите компьютер", "Ошибка", MessageBoxButtons.OK, MessageBoxIcon.Error); return; }