Баг с отображением устранен
This commit is contained in:
parent
a204cc5e69
commit
3e34afb54b
@ -101,6 +101,7 @@
|
|||||||
Controls.Add(textBoxComponentName);
|
Controls.Add(textBoxComponentName);
|
||||||
Name = "FormComponent";
|
Name = "FormComponent";
|
||||||
Text = "Компонент";
|
Text = "Компонент";
|
||||||
|
Load += FormComponent_Load;
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
@ -107,6 +107,7 @@
|
|||||||
Controls.Add(dataGridViewComponents);
|
Controls.Add(dataGridViewComponents);
|
||||||
Name = "FormComponents";
|
Name = "FormComponents";
|
||||||
Text = "Компоненты";
|
Text = "Компоненты";
|
||||||
|
Load += FormComponents_Load;
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridViewComponents).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridViewComponents).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
@ -56,8 +56,7 @@ namespace SecuritySystemView
|
|||||||
var service = Program.ServiceProvider?.GetService(typeof(FormComponent));
|
var service = Program.ServiceProvider?.GetService(typeof(FormComponent));
|
||||||
if (service is FormComponent form)
|
if (service is FormComponent form)
|
||||||
{
|
{
|
||||||
form.Id =
|
form.Id = Convert.ToInt32(dataGridViewComponents.SelectedRows[0].Cells["Id"].Value);
|
||||||
Convert.ToInt32(dataGridViewComponents.SelectedRows[0].Cells["Id"].Value);
|
|
||||||
if (form.ShowDialog() == DialogResult.OK)
|
if (form.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
LoadData();
|
LoadData();
|
||||||
|
@ -126,6 +126,7 @@
|
|||||||
Controls.Add(labelSecureName);
|
Controls.Add(labelSecureName);
|
||||||
Name = "FormCreateOrder";
|
Name = "FormCreateOrder";
|
||||||
Text = "Создание заказа";
|
Text = "Создание заказа";
|
||||||
|
Load += FormCreateOrder_Load;
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
}
|
}
|
||||||
|
@ -62,14 +62,14 @@
|
|||||||
// ComponentsToolStripMenuItem
|
// ComponentsToolStripMenuItem
|
||||||
//
|
//
|
||||||
ComponentsToolStripMenuItem.Name = "ComponentsToolStripMenuItem";
|
ComponentsToolStripMenuItem.Name = "ComponentsToolStripMenuItem";
|
||||||
ComponentsToolStripMenuItem.Size = new Size(224, 26);
|
ComponentsToolStripMenuItem.Size = new Size(182, 26);
|
||||||
ComponentsToolStripMenuItem.Text = "Компоненты";
|
ComponentsToolStripMenuItem.Text = "Компоненты";
|
||||||
ComponentsToolStripMenuItem.Click += ComponentsToolStripMenuItem_Click;
|
ComponentsToolStripMenuItem.Click += ComponentsToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
// SecuresToolStripMenuItem
|
// SecuresToolStripMenuItem
|
||||||
//
|
//
|
||||||
SecuresToolStripMenuItem.Name = "SecuresToolStripMenuItem";
|
SecuresToolStripMenuItem.Name = "SecuresToolStripMenuItem";
|
||||||
SecuresToolStripMenuItem.Size = new Size(224, 26);
|
SecuresToolStripMenuItem.Size = new Size(182, 26);
|
||||||
SecuresToolStripMenuItem.Text = "Изделия";
|
SecuresToolStripMenuItem.Text = "Изделия";
|
||||||
SecuresToolStripMenuItem.Click += SecuresToolStripMenuItem_Click;
|
SecuresToolStripMenuItem.Click += SecuresToolStripMenuItem_Click;
|
||||||
//
|
//
|
||||||
@ -154,6 +154,7 @@
|
|||||||
MainMenuStrip = menuStrip;
|
MainMenuStrip = menuStrip;
|
||||||
Name = "FormMain";
|
Name = "FormMain";
|
||||||
Text = "Системы безопасности";
|
Text = "Системы безопасности";
|
||||||
|
Load += FormMain_Load;
|
||||||
menuStrip.ResumeLayout(false);
|
menuStrip.ResumeLayout(false);
|
||||||
menuStrip.PerformLayout();
|
menuStrip.PerformLayout();
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
|
@ -202,6 +202,7 @@
|
|||||||
Controls.Add(labelSecureName);
|
Controls.Add(labelSecureName);
|
||||||
Name = "FormSecure";
|
Name = "FormSecure";
|
||||||
Text = "Изделие";
|
Text = "Изделие";
|
||||||
|
Load += FormSecure_Load;
|
||||||
groupBoxComponentsControl.ResumeLayout(false);
|
groupBoxComponentsControl.ResumeLayout(false);
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
|
@ -126,13 +126,4 @@
|
|||||||
<metadata name="ColumnCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<metadata name="ColumnCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
<value>True</value>
|
<value>True</value>
|
||||||
</metadata>
|
</metadata>
|
||||||
<metadata name="ColumnId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="ColumnName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
<metadata name="ColumnCount.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
|
||||||
<value>True</value>
|
|
||||||
</metadata>
|
|
||||||
</root>
|
</root>
|
@ -105,6 +105,7 @@
|
|||||||
Controls.Add(dataGridView);
|
Controls.Add(dataGridView);
|
||||||
Name = "FormSecures";
|
Name = "FormSecures";
|
||||||
Text = "Иделия";
|
Text = "Иделия";
|
||||||
|
Load += FormSecures_Load;
|
||||||
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
||||||
ResumeLayout(false);
|
ResumeLayout(false);
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,7 @@ namespace SecuritySystemView
|
|||||||
dataGridView.DataSource = list;
|
dataGridView.DataSource = list;
|
||||||
dataGridView.Columns["Id"].Visible = false;
|
dataGridView.Columns["Id"].Visible = false;
|
||||||
dataGridView.Columns["SecureName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
dataGridView.Columns["SecureName"].AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
||||||
|
dataGridView.Columns["SecureComponents"].Visible = false;
|
||||||
}
|
}
|
||||||
_logger.LogInformation("Загрузка изделий");
|
_logger.LogInformation("Загрузка изделий");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user