Готово

This commit is contained in:
Макс Бондаренко 2022-11-13 20:28:32 +04:00
parent 4d79fe73ab
commit 1229514d8d

View File

@ -201,11 +201,12 @@ namespace WarmlyShip
private void LoadToolStripMenuItem_Click(object sender, EventArgs e)
{
if (saveFileDialog.ShowDialog() == DialogResult.OK)
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
if (_mapsCollection.SaveData(saveFileDialog.FileName))
if (_mapsCollection.LoadData(openFileDialog.FileName))
{
MessageBox.Show("Загрузка прошла успешно", "Результат", MessageBoxButtons.OK, MessageBoxIcon.Information);
ReloadMaps();
}
else
{