public void GetNotifiedAboutCrash(Aircraft aircraft)
        {
            foreach (var registrationEntry in registeredAircraft.Where(entry => entry.Aircraft == aircraft))
            {
                registrationEntry.HasCrashed = false;
            }

            //for (int index = 0; index < Registry.Count; index++)
            //{
            //    if (Registry[index].Item1 == aircraft)
            //    {
            //        Registry[index] = new Tuple<PoweredAircraft, bool>(Registry[index].Item1, true);
            //    }
            //}
            Console.WriteLine("Aircraft crash registered");
        }
 public void GetNotifiedAboutCrash(Aircraft aircraft)
 {
     Console.WriteLine("\nStarting investigation of the crash of {0} {1} (serial number: {2}).\n", aircraft.Manufacturer, aircraft.Model, aircraft.SerialNumber);
 }
Beispiel #3
0
 public void GetNotifiedAboutCrash(Aircraft aircraft)
 {
     Console.WriteLine("\nStarting investigation of the crash of {0} {1} (serial number: {2}).\n", aircraft.Manufacturer, aircraft.Model, aircraft.SerialNumber);
 }