Корректировка формы
This commit is contained in:
parent
08af1d11ad
commit
dba9d94527
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user