Ejemplo n.º 1
0
        public static ObservableCollection<Pilot> GetPilots()
        {
            ObservableCollection<Pilot> pilots = new ObservableCollection<Pilot>();
            Pilot pilot;

            // Vettel
            pilot = new Pilot("Sebastian", "Vettel", 0);
            pilots.Add(pilot);

            // Alonso
            pilot = new Pilot("Fernando", "Alonso", 1);
            pilots.Add(pilot);

            // Button
            pilot = new Pilot("James", "Button", 2);
            pilots.Add(pilot);

            return pilots;
        }
Ejemplo n.º 2
0
        public static ObservableCollection <Pilot> GetPilots()
        {
            ObservableCollection <Pilot> pilots = new ObservableCollection <Pilot>();
            Pilot pilot;

            // Vettel
            pilot = new Pilot("Sebastian", "Vettel", 0);
            pilots.Add(pilot);

            // Alonso
            pilot = new Pilot("Fernando", "Alonso", 1);
            pilots.Add(pilot);

            // Button
            pilot = new Pilot("James", "Button", 2);
            pilots.Add(pilot);

            return(pilots);
        }