示例#1
0
        static void PrintVelibStationThanksToCityName()
        {
            City city = getChosenCity();

            Station[] stations = service.GetVelibStations(city);
            foreach (Station station in stations)
            {
                Console.WriteLine("Nom de la station : " + station.Name + ", nom du contrat : " + station.Contract_Name);
            }
            Console.WriteLine("\n\n");
        }
示例#2
0
 private void button1_Click(object sender, EventArgs e)
 {
     listBox2.Items.Clear();
     stations = service.GetVelibStations(selected_city);
     foreach (Station station in stations)
     {
         this.listBox2.Items.Add(station.Name);
     }
 }