Корректировка формы

This commit is contained in:
Мельников Игорь 2022-10-26 20:47:14 +04:00
parent 08af1d11ad
commit dba9d94527

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>