Esempio n. 1
0
        public void JourneyComplete(Satellite pvSatellite, int pvTimeToComplete)
        {
            double dblDistanceTravelled        = pvSatellite.DistanceBetweenPlanets + pvSatellite.DistanceInPlanetaryOrbit;
            string strMessageComplete          = "    JOURNEY COMPLETE!";
            string strMessageDistanceTravelled = "Distance Travelled: " + dblDistanceTravelled.ToString();
            string strTimeToComplete           = "In " + (pvTimeToComplete / 365) + " Years " + (pvTimeToComplete % 365) + " Days";

            pvSatellite.Reset();

            MessageBox.Show(strTimeToComplete, strMessageComplete, MessageBoxButton.OK);
        }