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; }
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); }