Exemplo n.º 1
0
 /// <summary>
 /// Affiche les stations d'une ville
 /// </summary>
 private void StationDisponible_click(object sender, RoutedEventArgs e)
 {
     this.list.Items.Clear();
     foreach (Station station in this.client.GetStations(Ville.ToString().ToUpper()))
     {
         this.list.Items.Add(station);
     }
 }
Exemplo n.º 2
0
        /// <summary>
        /// Affiche le nombre de vélo disponible pour une station
        /// </summary>
        private void NbVelo_click(object sender, RoutedEventArgs e)
        {
            this.list.Items.Clear();
            Station tmp = new Station()
            {
                available_bikes = this.client.GetNumberAvailableBike(Ville.ToString().ToUpper(),
                                                                     Station.ToString().ToUpper()),
                name    = Ville.ToString().ToUpper(),
                address = "?"
            };

            this.list.Items.Add(tmp);
        }