LabWork_06 #12

Closed
maxnes3 wants to merge 10 commits from LabWork_06 into LabWork_05
Showing only changes of commit 1229514d8d - Show all commits

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
{