private void saveToolStripMenuItem_Click(object sender, EventArgs e) { if (saveFileDialog1.ShowDialog() == DialogResult.OK) { if (AreaMapComponent.IsEditing) { AreaMapComponent.StopEdit(); } string error = AreaMapComponent.Save(AreaMapComponent.CurrentAreaMap, saveFileDialog1.FileName, true); if (!string.IsNullOrEmpty(error)) { MessageBox.Show(error); } } }