diff --git a/Locomotives/Locomotives/FormMapWithSetLocomotives.cs b/Locomotives/Locomotives/FormMapWithSetLocomotives.cs index eb7fe48..bfca24b 100644 --- a/Locomotives/Locomotives/FormMapWithSetLocomotives.cs +++ b/Locomotives/Locomotives/FormMapWithSetLocomotives.cs @@ -72,6 +72,7 @@ return; } _mapsCollection.AddMap(textBoxNewMapName.Text, _mapsDict[comboBoxSelectorMap.Text]); + textBoxNewMapName.Text = ""; ReloadMaps(); } /// @@ -81,7 +82,7 @@ /// 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(); ; } /// /// Удаление карты @@ -99,6 +100,7 @@ _mapsCollection.DelMap(listBoxMaps.SelectedItem?.ToString() ?? string.Empty); ReloadMaps(); } + MessageBox.Show("Карта удалена"); } ///