private void exportMapToolStripMenuItem_Click(object sender, EventArgs e) { ExportMap ExportMapWindow = new ExportMap(); if (ExportMapWindow.ShowDialog() == DialogResult.OK) { DialogResult exportMap = this.folderBrowserDialogLoadTiles.ShowDialog(); if (exportMap == DialogResult.OK) { // save Map try { if (_map.ExportMap(ref _tile_library, folderBrowserDialogLoadTiles.SelectedPath, lbLayers, ExportMapWindow.LayerOption, ExportMapWindow.LanguageOption, ExportMapWindow.TileOption)) { MessageBox.Show(Path.GetFileNameWithoutExtension(_map.MapFileName) + " is exported successfully!", "Export Done!", MessageBoxButtons.OK); } } catch (Exception ex) { MessageBox.Show("Fail to Export:\n" + ex.Message); } } } }
private void exportMapToolStripMenuItem_Click(object sender, EventArgs e) { ExportMap ExportMapWindow = new ExportMap(); if (ExportMapWindow.ShowDialog() == DialogResult.OK) { DialogResult exportMap = this.folderBrowserDialogLoadTiles.ShowDialog(); if (exportMap == DialogResult.OK) { // save Map try { if (_map.ExportMap(ref _tile_library, pbMap, folderBrowserDialogLoadTiles.SelectedPath, lbLayers, ExportMapWindow.LayerOption, ExportMapWindow.LanguageOption, ExportMapWindow.TileOption)) { MessageBox.Show(Path.GetFileNameWithoutExtension(_map.MapFileName) + " is exported successfully!", "Export Done!", MessageBoxButtons.OK); } } catch (Exception ex) { MessageBox.Show("Fail to Export:\n" + ex.Message); } } } }