private void exportAsAnimPickerFileToolStripMenuItem_Click(object sender, EventArgs e) { if (saveFileDialog2.ShowDialog() == DialogResult.OK) { if (AreaMapComponent.IsEditing) { AreaMapComponent.StopEdit(); } string error = AreaMapComponent.ExportAsPicker(AreaMapComponent.CurrentAreaMap, saveFileDialog2.FileName, false, 1.5); if (!string.IsNullOrEmpty(error)) { MessageBox.Show(error); } } }
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); } } }
private void stopEditingToolStripMenuItem_Click(object sender, EventArgs e) { AreaMapComponent.StopEdit(); RefreshListBox(); }