PIbd-14_Rachek_A.S._LabWork7.Base #8

Closed
anchkk11 wants to merge 3 commits from lab_7 into lab_6
Showing only changes of commit f000dd4b40 - Show all commits

View File

@ -39,7 +39,7 @@ public partial class FormSimpleBusCollection : Form
{
switch (comboBoxSelectorCompany.Text)
{
case "Хранилище":
case "хранилище":
_company = new BusStation(pictureBox.Width, pictureBox.Height,
new MassiveGenericObjects<DrawningSimpleBus>());
break;
@ -169,15 +169,12 @@ public partial class FormSimpleBusCollection : Form
/// <param name="e"></param>
private void ButtonRefresh_Click(object sender, EventArgs e)
{
listBoxCollection.Items.Clear();
for (int i = 0; i < _storageCollection.Keys?.Count; ++i)
if (_company == null)
{
string? colName = _storageCollection.Keys?[i];
if (!string.IsNullOrEmpty(colName))
{
listBoxCollection.Items.Add(colName);
}
return;
}
pictureBox.Image = _company.Show();
}
/// <summary>
@ -320,7 +317,7 @@ public partial class FormSimpleBusCollection : Form
switch (comboBoxSelectorCompany.Text)
{
case "Хранилище":
case "хранилище":
_company = new BusStation(pictureBox.Width, pictureBox.Height, collection);
_logger.LogInformation("Компания создана");
break;