private string PromptSaveFileDialog()
{
if (sfDlg == null)
{
sfDlg = new SaveFileDialog();
sfDlg.AddExtension = true;
sfDlg.CheckPathExists = true;
sfDlg.DefaultExt = "kmz";
sfDlg.Filter = "KMZ File (*.kmz)|*.kmz";
sfDlg.OverwritePrompt = true;
sfDlg.Title = "Choose location to create KMZ file";
}
sfDlg.FileName = "";
if (sfDlg.ShowDialog() == DialogResult.OK)
{
return sfDlg.FileName;
}
return null;
}