private void saveToolStripMenuItem_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog() == DialogResult.OK) { try { MG_window.SaveMap(saveFileDialog1.FileName); currentFileName = saveFileDialog1.FileName; saveToolStripMenuItem1.Enabled = true; } catch (Exception ex) { throw ex; } } }
private void saveToolStripMenuItem1_Click(object sender, EventArgs e) { MG_window.SaveMap(currentFileName); }