diff --git a/Confectionery/ConfectioneryContracts/Class1.cs b/Confectionery/ConfectioneryContracts/Class1.cs deleted file mode 100644 index 0dcf35f..0000000 --- a/Confectionery/ConfectioneryContracts/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace ConfectioneryContracts -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/Confectionery/ConfectioneryView/FormCreateSupply.Designer.cs b/Confectionery/ConfectioneryView/FormCreateSupply.Designer.cs index eb08a31..a4a7a2b 100644 --- a/Confectionery/ConfectioneryView/FormCreateSupply.Designer.cs +++ b/Confectionery/ConfectioneryView/FormCreateSupply.Designer.cs @@ -28,12 +28,88 @@ /// 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 = "FormCreateSupply"; + labelShop = new Label(); + labelPastry = new Label(); + labelCount = new Label(); + comboBox1 = new ComboBox(); + comboBox2 = new ComboBox(); + textBox1 = new TextBox(); + SuspendLayout(); + // + // labelShop + // + labelShop.AutoSize = true; + labelShop.Location = new Point(42, 42); + labelShop.Name = "labelShop"; + labelShop.Size = new Size(85, 25); + labelShop.TabIndex = 0; + labelShop.Text = "Магазин:"; + // + // labelPastry + // + labelPastry.AutoSize = true; + labelPastry.Location = new Point(42, 101); + labelPastry.Name = "labelPastry"; + labelPastry.Size = new Size(84, 25); + labelPastry.TabIndex = 1; + labelPastry.Text = "Изделие:"; + // + // labelCount + // + labelCount.AutoSize = true; + labelCount.Location = new Point(42, 161); + labelCount.Name = "labelCount"; + labelCount.Size = new Size(111, 25); + labelCount.TabIndex = 2; + labelCount.Text = "Количество:"; + // + // comboBox1 + // + comboBox1.FormattingEnabled = true; + comboBox1.Location = new Point(162, 39); + comboBox1.Name = "comboBox1"; + comboBox1.Size = new Size(383, 33); + comboBox1.TabIndex = 3; + // + // comboBox2 + // + comboBox2.FormattingEnabled = true; + comboBox2.Location = new Point(162, 98); + comboBox2.Name = "comboBox2"; + comboBox2.Size = new Size(383, 33); + comboBox2.TabIndex = 4; + // + // textBox1 + // + textBox1.Location = new Point(162, 158); + textBox1.Name = "textBox1"; + textBox1.Size = new Size(383, 31); + textBox1.TabIndex = 5; + // + // FormCreateSupply + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(608, 240); + Controls.Add(textBox1); + Controls.Add(comboBox2); + Controls.Add(comboBox1); + Controls.Add(labelCount); + Controls.Add(labelPastry); + Controls.Add(labelShop); + Name = "FormCreateSupply"; + Text = "Поставка"; + ResumeLayout(false); + PerformLayout(); } #endregion + + private Label labelShop; + private Label labelPastry; + private Label labelCount; + private ComboBox comboBox1; + private ComboBox comboBox2; + private TextBox textBox1; } } \ No newline at end of file diff --git a/Confectionery/ConfectioneryView/FormCreateSupply.resx b/Confectionery/ConfectioneryView/FormCreateSupply.resx index 1af7de1..f298a7b 100644 --- a/Confectionery/ConfectioneryView/FormCreateSupply.resx +++ b/Confectionery/ConfectioneryView/FormCreateSupply.resx @@ -1,64 +1,4 @@ - - - + diff --git a/Confectionery/ConfectioneryView/FormShop.Designer.cs b/Confectionery/ConfectioneryView/FormShop.Designer.cs index e4b1671..af6d641 100644 --- a/Confectionery/ConfectioneryView/FormShop.Designer.cs +++ b/Confectionery/ConfectioneryView/FormShop.Designer.cs @@ -28,12 +28,126 @@ /// 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 = "FormShop"; + dataGridView = new DataGridView(); + labelName = new Label(); + labelAddress = new Label(); + labelOpen = new Label(); + textBoxName = new TextBox(); + textBoxAddress = new TextBox(); + dateTimePickerOpen = new DateTimePicker(); + buttonSave = new Button(); + buttonCancel = new Button(); + ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); + SuspendLayout(); + // + // dataGridView + // + dataGridView.BackgroundColor = Color.AliceBlue; + dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView.Location = new Point(12, 225); + dataGridView.Name = "dataGridView"; + dataGridView.RowHeadersWidth = 62; + dataGridView.RowTemplate.Height = 33; + dataGridView.Size = new Size(765, 393); + dataGridView.TabIndex = 0; + // + // labelName + // + labelName.AutoSize = true; + labelName.Location = new Point(36, 50); + labelName.Name = "labelName"; + labelName.Size = new Size(94, 25); + labelName.TabIndex = 1; + labelName.Text = "Название:"; + // + // labelAddress + // + labelAddress.AutoSize = true; + labelAddress.Location = new Point(36, 98); + labelAddress.Name = "labelAddress"; + labelAddress.Size = new Size(66, 25); + labelAddress.TabIndex = 2; + labelAddress.Text = "Адрес:"; + // + // labelOpen + // + labelOpen.AutoSize = true; + labelOpen.Location = new Point(36, 146); + labelOpen.Name = "labelOpen"; + labelOpen.Size = new Size(135, 25); + labelOpen.TabIndex = 3; + labelOpen.Text = "Дата открытия:"; + // + // textBoxName + // + textBoxName.Location = new Point(201, 47); + textBoxName.Name = "textBoxName"; + textBoxName.Size = new Size(378, 31); + textBoxName.TabIndex = 4; + // + // textBoxAddress + // + textBoxAddress.Location = new Point(201, 95); + textBoxAddress.Name = "textBoxAddress"; + textBoxAddress.Size = new Size(378, 31); + textBoxAddress.TabIndex = 5; + // + // dateTimePickerOpen + // + dateTimePickerOpen.Location = new Point(201, 146); + dateTimePickerOpen.Name = "dateTimePickerOpen"; + dateTimePickerOpen.Size = new Size(378, 31); + dateTimePickerOpen.TabIndex = 6; + // + // buttonSave + // + buttonSave.Location = new Point(466, 650); + buttonSave.Name = "buttonSave"; + buttonSave.Size = new Size(139, 55); + buttonSave.TabIndex = 7; + buttonSave.Text = "Сохранить"; + buttonSave.UseVisualStyleBackColor = true; + // + // buttonCancel + // + buttonCancel.Location = new Point(639, 650); + buttonCancel.Name = "buttonCancel"; + buttonCancel.Size = new Size(138, 55); + buttonCancel.TabIndex = 8; + buttonCancel.Text = "Отмена"; + buttonCancel.UseVisualStyleBackColor = true; + // + // FormShop + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(805, 743); + Controls.Add(buttonCancel); + Controls.Add(buttonSave); + Controls.Add(dateTimePickerOpen); + Controls.Add(textBoxAddress); + Controls.Add(textBoxName); + Controls.Add(labelOpen); + Controls.Add(labelAddress); + Controls.Add(labelName); + Controls.Add(dataGridView); + Name = "FormShop"; + Text = "Магазин"; + ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); + ResumeLayout(false); + PerformLayout(); } #endregion + + private DataGridView dataGridView; + private Label labelName; + private Label labelAddress; + private Label labelOpen; + private TextBox textBoxName; + private TextBox textBoxAddress; + private DateTimePicker dateTimePickerOpen; + private Button buttonSave; + private Button buttonCancel; } } \ No newline at end of file diff --git a/Confectionery/ConfectioneryView/FormShop.resx b/Confectionery/ConfectioneryView/FormShop.resx index 1af7de1..f298a7b 100644 --- a/Confectionery/ConfectioneryView/FormShop.resx +++ b/Confectionery/ConfectioneryView/FormShop.resx @@ -1,64 +1,4 @@ - - - + diff --git a/Confectionery/ConfectioneryView/FormShops.Designer.cs b/Confectionery/ConfectioneryView/FormShops.Designer.cs index 15a3683..0ef5b8c 100644 --- a/Confectionery/ConfectioneryView/FormShops.Designer.cs +++ b/Confectionery/ConfectioneryView/FormShops.Designer.cs @@ -28,12 +28,83 @@ /// 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 = "FormShops"; + dataGridView1 = new DataGridView(); + buttonAdd = new Button(); + buttonUpd = new Button(); + buttonDel = new Button(); + buttonRef = new Button(); + ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit(); + SuspendLayout(); + // + // dataGridView1 + // + dataGridView1.BackgroundColor = Color.AliceBlue; + dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; + dataGridView1.Location = new Point(12, 30); + dataGridView1.Name = "dataGridView1"; + dataGridView1.RowHeadersWidth = 62; + dataGridView1.RowTemplate.Height = 33; + dataGridView1.Size = new Size(756, 486); + dataGridView1.TabIndex = 0; + // + // buttonAdd + // + buttonAdd.Location = new Point(823, 54); + buttonAdd.Name = "buttonAdd"; + buttonAdd.Size = new Size(142, 51); + buttonAdd.TabIndex = 1; + buttonAdd.Text = "Добавить"; + buttonAdd.UseVisualStyleBackColor = true; + // + // buttonUpd + // + buttonUpd.Location = new Point(823, 135); + buttonUpd.Name = "buttonUpd"; + buttonUpd.Size = new Size(142, 51); + buttonUpd.TabIndex = 2; + buttonUpd.Text = "Изменить"; + buttonUpd.UseVisualStyleBackColor = true; + // + // buttonDel + // + buttonDel.Location = new Point(823, 219); + buttonDel.Name = "buttonDel"; + buttonDel.Size = new Size(142, 51); + buttonDel.TabIndex = 3; + buttonDel.Text = "Удалить"; + buttonDel.UseVisualStyleBackColor = true; + // + // buttonRef + // + buttonRef.Location = new Point(823, 306); + buttonRef.Name = "buttonRef"; + buttonRef.Size = new Size(142, 51); + buttonRef.TabIndex = 4; + buttonRef.Text = "Обновить"; + buttonRef.UseVisualStyleBackColor = true; + // + // FormShops + // + AutoScaleDimensions = new SizeF(10F, 25F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(1016, 529); + Controls.Add(buttonRef); + Controls.Add(buttonDel); + Controls.Add(buttonUpd); + Controls.Add(buttonAdd); + Controls.Add(dataGridView1); + Name = "FormShops"; + Text = "Магазины"; + ((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit(); + ResumeLayout(false); } #endregion + + private DataGridView dataGridView1; + private Button buttonAdd; + private Button buttonUpd; + private Button buttonDel; + private Button buttonRef; } } \ No newline at end of file diff --git a/Confectionery/ConfectioneryView/FormShops.resx b/Confectionery/ConfectioneryView/FormShops.resx index 1af7de1..f298a7b 100644 --- a/Confectionery/ConfectioneryView/FormShops.resx +++ b/Confectionery/ConfectioneryView/FormShops.resx @@ -1,64 +1,4 @@ - - - +