コード例 #1
0
ファイル: Pilot.cs プロジェクト: CJMarsland/xaml-sdk
        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;
        }
コード例 #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);
        }