private void загрузитьМетодФармаToolStripMenuItem_Click(object sender, EventArgs e) { folderBrowserDialog1.SelectedPath = Directory.GetCurrentDirectory(); if (folderBrowserDialog1.ShowDialog() == DialogResult.OK) { MainMapConstructor.LoadMap(folderBrowserDialog1.SelectedPath); } }
private void SaveToolStripMenuItem_Click(object sender, EventArgs e) { try { MainMapConstructor.SaveMap(); MessageBox.Show("Сохранено", MainMapConstructor.MapName); } catch { MessageBox.Show("Ошибка сохранения"); } }