private void editBtn_Click(object sender, RoutedEventArgs e)
        {
            int    indexOfSelectedItem = airportDataGrid.SelectedIndex;
            string airportCode         = (airportDataGrid.SelectedItem as AirportReference).AirportCode;
            NewEditAirportReferenceWindow editAirportReferenceWindow = new NewEditAirportReferenceWindow(airportCode);

            editAirportReferenceWindow.ShowDialog();
            if (editAirportReferenceWindow.DialogResult.HasValue && editAirportReferenceWindow.DialogResult.Value)
            {
                DoSearch();
            }
        }
        private void airportDataGrid_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            int    indexOfSelectedItem = (sender as DataGrid).SelectedIndex;
            string airportCode         = ((sender as DataGrid).SelectedItem as AirportReference).AirportCode;
            NewEditAirportReferenceWindow editAirportReferenceWindow = new NewEditAirportReferenceWindow(airportCode);

            editAirportReferenceWindow.ShowDialog();
            if (editAirportReferenceWindow.DialogResult.HasValue && editAirportReferenceWindow.DialogResult.Value)
            {
                DoSearch();
            }
        }
        private void newBtn_Click(object sender, RoutedEventArgs e)
        {
            NewEditAirportReferenceWindow newAirportReferenceWindow = new NewEditAirportReferenceWindow();

            newAirportReferenceWindow.ShowDialog();
        }