пока работает

This commit is contained in:
Владислава Алексанкина 2024-04-23 23:02:28 +04:00
parent 5fd346cfe9
commit 657e407519
9 changed files with 21 additions and 5 deletions

View File

@ -101,6 +101,7 @@
Controls.Add(labelName);
Name = "FormComponent";
Text = "Компонент";
Load += FormComponent_Load;
ResumeLayout(false);
PerformLayout();
}

View File

@ -112,6 +112,7 @@ namespace ConfectioneryView
Controls.Add(buttonAdd);
Name = "FormComponents";
Text = "Компоненты";
Load += FormComponents_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
}

View File

@ -79,6 +79,7 @@ namespace ConfectioneryView
}
}
}
}
private void buttonDelete_Click(object sender, EventArgs e)

View File

@ -128,6 +128,7 @@
Controls.Add(labelPastry);
Name = "FormCreateOrder";
Text = "Создание заказа";
Load += FormCreateOrder_Load;
ResumeLayout(false);
PerformLayout();
}

View File

@ -62,14 +62,14 @@
// ComponentToolStripMenuItem
//
ComponentToolStripMenuItem.Name = "ComponentToolStripMenuItem";
ComponentToolStripMenuItem.Size = new Size(224, 26);
ComponentToolStripMenuItem.Size = new Size(182, 26);
ComponentToolStripMenuItem.Text = "Компоненты";
ComponentToolStripMenuItem.Click += ComponentToolStripMenuItem_Click;
//
// PastryToolStripMenuItem
//
PastryToolStripMenuItem.Name = "PastryToolStripMenuItem";
PastryToolStripMenuItem.Size = new Size(224, 26);
PastryToolStripMenuItem.Size = new Size(182, 26);
PastryToolStripMenuItem.Text = "Изделия";
PastryToolStripMenuItem.Click += PastryToolStripMenuItem_Click;
//
@ -82,6 +82,7 @@
dataGridView.RowHeadersVisible = false;
dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29;
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(920, 422);
dataGridView.TabIndex = 1;
//
@ -150,6 +151,7 @@
MainMenuStrip = menuStrip1;
Name = "FormMain";
Text = "Кондитерский магазин";
Load += FormMain_Load;
menuStrip1.ResumeLayout(false);
menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();

View File

@ -38,13 +38,20 @@
//
// dataGridView
//
dataGridView.AllowUserToAddRows = false;
dataGridView.AllowUserToDeleteRows = false;
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(-1, 0);
dataGridView.Dock = DockStyle.Left;
dataGridView.Location = new Point(0, 0);
dataGridView.MultiSelect = false;
dataGridView.Name = "dataGridView";
dataGridView.ReadOnly = true;
dataGridView.RowHeadersVisible = false;
dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(440, 399);
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(440, 397);
dataGridView.TabIndex = 0;
//
// buttonAdd
@ -99,6 +106,7 @@
Controls.Add(dataGridView);
Name = "FormPastries";
Text = "Кондитерские изделия";
Load += FormPastries_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
}

View File

@ -219,6 +219,7 @@
Controls.Add(labelName);
Name = "FormPastry";
Text = "Кондитерское изделие";
Load += FormPastry_Load;
groupBoxComponents.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);

View File

@ -35,7 +35,7 @@ namespace ConfectioneryView
_productComponents = new Dictionary<int, (IComponentModel, int)>();
}
private void FormProduct_Load(object sender, EventArgs e)
private void FormPastry_Load(object sender, EventArgs e)
{
if (_id.HasValue)
{

View File

@ -48,6 +48,7 @@ namespace ConfectioneryView
services.AddTransient<FormComponents>();
services.AddTransient<FormCreateOrder>();
services.AddTransient<FormPastry>();
services.AddTransient<FormPastries>();
services.AddTransient<FormPastryComponent>();
}
}