private void btnManualMatch_Click(object sender, EventArgs e) { try { if (!geoCoder.IsGazetteerInitialised()) { MessageBox.Show( "Gazetteer data missing, please read in a gazetteer file.", "Missing"); return; } if (geoCoder.InputData == null) { MessageBox.Show( "Input data missing, please read in an input file.", "Missing"); return; } SetColumnNames(); FormManualMatch formManualMatch = new FormManualMatch( geoCoder, dataGridView1); formManualMatch.ShowDialog(); } catch (Exception ex) { ErrorHandler.Process( "A problem occurred with the Manual Match screen load.", ex); } }
private void btnNext_Click(object sender, EventArgs e) { try { if (!geoCoder.IsGazetteerInitialised()) { UiHelper.DisplayMessage( "Please load the gazetteer data.", "Missing Data"); } else { if (!AreColumnNamesSelected()) { UiHelper.DisplayMessage( "Please select the columns that contain the code and name data.", "Missing Data"); } else { SetColumnNames(); LoadNextScreen(); } } } catch (Exception ex) { ErrorHandler.Process("Error loading input form", ex); } }