Romanov E.V. LabWork5 #12

Closed
RomanovEgor wants to merge 3 commits from 4LAB into 5LAB
Showing only changes of commit 4d57b0951b - Show all commits

View File

@ -135,8 +135,8 @@ namespace HoistingCrane
FormHoistingCrane form = new();
if (form.ShowDialog() == DialogResult.OK)
{
DrawingObjectHoistingCrane roadtrain = new(form.SelectedHoistingCrane);
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + roadtrain != -1)
DrawingObjectHoistingCrane hoistingCrane = new(form.SelectedHoistingCrane);
if (_mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty] + hoistingCrane != -1)
{
MessageBox.Show("Объект добавлен");
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
@ -176,7 +176,7 @@ namespace HoistingCrane
{
return;
}
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowOnMap();
pictureBox.Image = _mapsCollection[listBoxMaps.SelectedItem?.ToString() ?? string.Empty].ShowSet();
}
private void ButtonShowOnMap_Click(object sender, EventArgs e)