private void SaveOutputFile() { try { if (geoCoder.InputData == null) { MessageBox.Show( "Input data missing, please read in an input file.", "Missing"); return; } if (string.IsNullOrEmpty(txtOutputFileName.Text)) { SelectOutputFileName(); } if (!string.IsNullOrEmpty(txtOutputFileName.Text)) { geoCoder.SaveOutputFile(txtOutputFileName.Text); MessageBox.Show("Output file saved"); } else { MessageBox.Show("Output file not saved"); } } catch (Exception ex) { ErrorHandler.Process("File save error.", ex); } }