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; }