ISEbd-21 Melnikov I. O. Lab work 04 Base #6

Closed
Igor-Melnikov wants to merge 4 commits from LabWork04 into LabWork03
Showing only changes of commit dba9d94527 - Show all commits

View File

@ -72,6 +72,7 @@
return;
}
_mapsCollection.AddMap(textBoxNewMapName.Text, _mapsDict[comboBoxSelectorMap.Text]);
textBoxNewMapName.Text = "";
ReloadMaps();
}
/// <summary>
@ -81,7 +82,7 @@
/// <param name="e"></param>
private void ListBoxMaps_SelectedIndexChanged(object sender, EventArgs e)
{
pictureBoxLocomotives.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
pictureBoxLocomotives.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowOnMap(); ;
}
/// <summary>
/// Удаление карты
@ -99,6 +100,7 @@
_mapsCollection.DelMap(listBoxMaps.SelectedItem?.ToString() ?? string.Empty);
ReloadMaps();
}
MessageBox.Show("Карта удалена");
}
/// <summary>