лаб 7 готовая полностью
This commit is contained in:
parent
8aea0aebc3
commit
f000dd4b40
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user