private void Button_Click(object sender, RoutedEventArgs e)
 {
     if (inputBox.Text != "")
     {
         InfoWindow currentInfoWindow = new InfoWindow(airportFolder, inputBox.Text, true);
         currentInfoWindow.ShowDialog();
         this.Close();
     }            
 }
Exemple #2
0
 private void openButton_Click(object sender, RoutedEventArgs e)
 {
     if (AirportList.SelectedIndex != -1)
     {
         ListBoxItem current = (ListBoxItem)AirportList.SelectedItem;
         InfoWindow currentInfoWindow = new InfoWindow(airportFolder , current.Content.ToString(), false);
         currentInfoWindow.ShowDialog();
     }
     else
         openButton.IsEnabled = false;
     //refresh the list
     airportListRead("");
 }