From 875842b96af6faec549746102d734f19b1013fb5 Mon Sep 17 00:00:00 2001 From: revengel66 Date: Fri, 21 Jun 2024 15:06:54 +0400 Subject: [PATCH] add client --- Pizzeria/Pizzeria/FormCreateOrder.Designer.cs | 65 ++++++++++++------- 1 file changed, 41 insertions(+), 24 deletions(-) diff --git a/Pizzeria/Pizzeria/FormCreateOrder.Designer.cs b/Pizzeria/Pizzeria/FormCreateOrder.Designer.cs index f261442..5f4cf4f 100644 --- a/Pizzeria/Pizzeria/FormCreateOrder.Designer.cs +++ b/Pizzeria/Pizzeria/FormCreateOrder.Designer.cs @@ -36,42 +36,42 @@ labelSum = new Label(); textBoxSum = new TextBox(); comboBoxPizza = new ComboBox(); + comboBoxClient = new ComboBox(); + labelClient = new Label(); SuspendLayout(); // // textBoxCount // - textBoxCount.Location = new Point(113, 55); - textBoxCount.Margin = new Padding(3, 4, 3, 4); + textBoxCount.Location = new Point(99, 73); textBoxCount.Name = "textBoxCount"; - textBoxCount.Size = new Size(266, 27); + textBoxCount.Size = new Size(233, 23); textBoxCount.TabIndex = 13; textBoxCount.TextChanged += textBoxCount_TextChanged; // // labelCount // labelCount.AutoSize = true; - labelCount.Location = new Point(13, 59); + labelCount.Location = new Point(11, 76); labelCount.Name = "labelCount"; - labelCount.Size = new Size(93, 20); + labelCount.Size = new Size(75, 15); labelCount.TabIndex = 12; labelCount.Text = "Количество:"; // // labelPizza // labelPizza.AutoSize = true; - labelPizza.Location = new Point(13, 20); + labelPizza.Location = new Point(11, 15); labelPizza.Name = "labelPizza"; - labelPizza.Size = new Size(55, 20); + labelPizza.Size = new Size(43, 15); labelPizza.TabIndex = 11; labelPizza.Text = "Пицца"; // // buttonCancel // buttonCancel.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; - buttonCancel.Location = new Point(294, 145); - buttonCancel.Margin = new Padding(3, 4, 3, 4); + buttonCancel.Location = new Point(257, 170); buttonCancel.Name = "buttonCancel"; - buttonCancel.Size = new Size(86, 31); + buttonCancel.Size = new Size(75, 23); buttonCancel.TabIndex = 15; buttonCancel.Text = "Отмена"; buttonCancel.UseVisualStyleBackColor = true; @@ -80,10 +80,9 @@ // buttonSave // buttonSave.Anchor = AnchorStyles.Bottom | AnchorStyles.Right; - buttonSave.Location = new Point(193, 145); - buttonSave.Margin = new Padding(3, 4, 3, 4); + buttonSave.Location = new Point(169, 170); buttonSave.Name = "buttonSave"; - buttonSave.Size = new Size(94, 31); + buttonSave.Size = new Size(82, 23); buttonSave.TabIndex = 16; buttonSave.Text = "Сохранить"; buttonSave.UseVisualStyleBackColor = true; @@ -92,36 +91,53 @@ // labelSum // labelSum.AutoSize = true; - labelSum.Location = new Point(13, 97); + labelSum.Location = new Point(11, 105); labelSum.Name = "labelSum"; - labelSum.Size = new Size(58, 20); + labelSum.Size = new Size(48, 15); labelSum.TabIndex = 12; labelSum.Text = "Сумма:"; // // textBoxSum // - textBoxSum.Location = new Point(113, 93); - textBoxSum.Margin = new Padding(3, 4, 3, 4); + textBoxSum.Location = new Point(99, 102); textBoxSum.Name = "textBoxSum"; textBoxSum.ReadOnly = true; - textBoxSum.Size = new Size(266, 27); + textBoxSum.Size = new Size(233, 23); textBoxSum.TabIndex = 13; // // comboBoxPizza // comboBoxPizza.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxPizza.FormattingEnabled = true; - comboBoxPizza.Location = new Point(113, 16); - comboBoxPizza.Margin = new Padding(3, 4, 3, 4); + comboBoxPizza.Location = new Point(99, 12); comboBoxPizza.Name = "comboBoxPizza"; - comboBoxPizza.Size = new Size(266, 28); + comboBoxPizza.Size = new Size(233, 23); comboBoxPizza.TabIndex = 17; // + // comboBoxClient + // + comboBoxClient.FormattingEnabled = true; + comboBoxClient.Location = new Point(99, 43); + comboBoxClient.Name = "comboBoxClient"; + comboBoxClient.Size = new Size(233, 23); + comboBoxClient.TabIndex = 18; + // + // labelClient + // + labelClient.AutoSize = true; + labelClient.Location = new Point(12, 46); + labelClient.Name = "labelClient"; + labelClient.Size = new Size(46, 15); + labelClient.TabIndex = 19; + labelClient.Text = "Клиент"; + // // FormCreateOrder // - AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(401, 200); + ClientSize = new Size(351, 211); + Controls.Add(labelClient); + Controls.Add(comboBoxClient); Controls.Add(comboBoxPizza); Controls.Add(buttonCancel); Controls.Add(buttonSave); @@ -130,7 +146,6 @@ Controls.Add(textBoxCount); Controls.Add(labelCount); Controls.Add(labelPizza); - Margin = new Padding(3, 4, 3, 4); Name = "FormCreateOrder"; Text = "Заказ"; Load += FormCreateOrder_Load; @@ -147,5 +162,7 @@ private Label labelSum; private TextBox textBoxSum; private ComboBox comboBoxPizza; + private ComboBox comboBoxClient; + private Label labelClient; } } \ No newline at end of file