пока работает
This commit is contained in:
parent
5fd346cfe9
commit
657e407519
@ -101,6 +101,7 @@
|
|||||||
Controls.Add(labelName);
|
Controls.Add(labelName);
|
||||||
Name = "FormComponent";
|
Name = "FormComponent";
|
||||||
Text = "Компонент";
|
Text = "Компонент";
|
||||||
|
Load += FormComponent_Load;
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
@ -112,6 +112,7 @@ namespace ConfectioneryView
|
|||||||
Controls.Add(buttonAdd);
|
Controls.Add(buttonAdd);
|
||||||
Name = "FormComponents";
|
Name = "FormComponents";
|
||||||
Text = "Компоненты";
|
Text = "Компоненты";
|
||||||
|
Load += FormComponents_Load;
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
@ -79,6 +79,7 @@ namespace ConfectioneryView
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buttonDelete_Click(object sender, EventArgs e)
|
private void buttonDelete_Click(object sender, EventArgs e)
|
||||||
|
@ -128,6 +128,7 @@
|
|||||||
Controls.Add(labelPastry);
|
Controls.Add(labelPastry);
|
||||||
Name = "FormCreateOrder";
|
Name = "FormCreateOrder";
|
||||||
Text = "Создание заказа";
|
Text = "Создание заказа";
|
||||||
|
Load += FormCreateOrder_Load;
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
@ -62,14 +62,14 @@
|
|||||||
// ComponentToolStripMenuItem
|
// ComponentToolStripMenuItem
|
||||||
//
|
//
|
||||||
ComponentToolStripMenuItem.Name = "ComponentToolStripMenuItem";
|
ComponentToolStripMenuItem.Name = "ComponentToolStripMenuItem";
|
||||||
ComponentToolStripMenuItem.Size = new Size(224, 26);
|
ComponentToolStripMenuItem.Size = new Size(182, 26);
|
||||||
ComponentToolStripMenuItem.Text = "Компоненты";
|
ComponentToolStripMenuItem.Text = "Компоненты";
|
||||||
ComponentToolStripMenuItem.Click += ComponentToolStripMenuItem_Click;
|
ComponentToolStripMenuItem.Click += ComponentToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// PastryToolStripMenuItem
|
// PastryToolStripMenuItem
|
||||||
//
|
//
|
||||||
PastryToolStripMenuItem.Name = "PastryToolStripMenuItem";
|
PastryToolStripMenuItem.Name = "PastryToolStripMenuItem";
|
||||||
PastryToolStripMenuItem.Size = new Size(224, 26);
|
PastryToolStripMenuItem.Size = new Size(182, 26);
|
||||||
PastryToolStripMenuItem.Text = "Изделия";
|
PastryToolStripMenuItem.Text = "Изделия";
|
||||||
PastryToolStripMenuItem.Click += PastryToolStripMenuItem_Click;
|
PastryToolStripMenuItem.Click += PastryToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -82,6 +82,7 @@
|
|||||||
dataGridView.RowHeadersVisible = false;
|
dataGridView.RowHeadersVisible = false;
|
||||||
dataGridView.RowHeadersWidth = 51;
|
dataGridView.RowHeadersWidth = 51;
|
||||||
dataGridView.RowTemplate.Height = 29;
|
dataGridView.RowTemplate.Height = 29;
|
||||||
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
dataGridView.Size = new Size(920, 422);
|
dataGridView.Size = new Size(920, 422);
|
||||||
dataGridView.TabIndex = 1;
|
dataGridView.TabIndex = 1;
|
||||||
//
|
//
|
||||||
@ -150,6 +151,7 @@
|
|||||||
MainMenuStrip = menuStrip1;
|
MainMenuStrip = menuStrip1;
|
||||||
Name = "FormMain";
|
Name = "FormMain";
|
||||||
Text = "Кондитерский магазин";
|
Text = "Кондитерский магазин";
|
||||||
|
Load += FormMain_Load;
|
||||||
menuStrip1.ResumeLayout(false);
|
menuStrip1.ResumeLayout(false);
|
||||||
menuStrip1.PerformLayout();
|
menuStrip1.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
|
@ -38,13 +38,20 @@
|
|||||||
//
|
//
|
||||||
// dataGridView
|
// dataGridView
|
||||||
//
|
//
|
||||||
|
dataGridView.AllowUserToAddRows = false;
|
||||||
|
dataGridView.AllowUserToDeleteRows = false;
|
||||||
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
|
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
|
||||||
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
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.Name = "dataGridView";
|
||||||
|
dataGridView.ReadOnly = true;
|
||||||
|
dataGridView.RowHeadersVisible = false;
|
||||||
dataGridView.RowHeadersWidth = 51;
|
dataGridView.RowHeadersWidth = 51;
|
||||||
dataGridView.RowTemplate.Height = 29;
|
dataGridView.RowTemplate.Height = 29;
|
||||||
dataGridView.Size = new Size(440, 399);
|
dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||||
|
dataGridView.Size = new Size(440, 397);
|
||||||
dataGridView.TabIndex = 0;
|
dataGridView.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// buttonAdd
|
// buttonAdd
|
||||||
@ -99,6 +106,7 @@
|
|||||||
Controls.Add(dataGridView);
|
Controls.Add(dataGridView);
|
||||||
Name = "FormPastries";
|
Name = "FormPastries";
|
||||||
Text = "Кондитерские изделия";
|
Text = "Кондитерские изделия";
|
||||||
|
Load += FormPastries_Load;
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
@ -219,6 +219,7 @@
|
|||||||
Controls.Add(labelName);
|
Controls.Add(labelName);
|
||||||
Name = "FormPastry";
|
Name = "FormPastry";
|
||||||
Text = "Кондитерское изделие";
|
Text = "Кондитерское изделие";
|
||||||
|
Load += FormPastry_Load;
|
||||||
groupBoxComponents.ResumeLayout(false);
|
groupBoxComponents.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
|
@ -35,7 +35,7 @@ namespace ConfectioneryView
|
|||||||
_productComponents = new Dictionary<int, (IComponentModel, int)>();
|
_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)
|
if (_id.HasValue)
|
||||||
{
|
{
|
||||||
|
@ -48,6 +48,7 @@ namespace ConfectioneryView
|
|||||||
services.AddTransient<FormComponents>();
|
services.AddTransient<FormComponents>();
|
||||||
services.AddTransient<FormCreateOrder>();
|
services.AddTransient<FormCreateOrder>();
|
||||||
services.AddTransient<FormPastry>();
|
services.AddTransient<FormPastry>();
|
||||||
|
services.AddTransient<FormPastries>();
|
||||||
services.AddTransient<FormPastryComponent>();
|
services.AddTransient<FormPastryComponent>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user