コード例 #1
0
        private void SearchBtn_Click(object sender, RoutedEventArgs e)
        {
            List <List <string> > results;

            StationsBox.Clear();

            if (AirportsOnly.IsChecked == true)
            {
                var stations = Manager.FindStation(Search.Text, Stations);
                results = Manager.FindAirport(stations);
            }
            else
            {
                results = Manager.FindStation(Search.Text, Stations);
            }

            foreach (var result in results)
            {
                StationsBox.Text += result[3] + ", " + result[2] + ", " + result[1] + ", " + result[0] + "\n";
            }
        }