コード例 #1
0
 private void parseToGMLToolStripMenuItem_Click_1(object sender, EventArgs e)
 {
     if (frmMain.dbx != null)
     {
         // Get outputShapefileName
         dlgSaveFile.Title    = "Please select where to save the GML file";
         dlgSaveFile.FileName = frmMain.dbx.DbBaseName + ".gml";
         dlgSaveFile.Filter   = "GML file|*.gml";
         if (dlgSaveFile.ShowDialog() != DialogResult.OK)
         {
             Log("Operation cancelled, no output file specified...");
             return;
         }
         var m = ExtFunctions.ExportSelectedDatabaseToGML(Log, dlgSaveFile.FileName);
         Log("Operation completed");
     }
 }