Ejemplo n.º 1
0
        private SpotData GetSpotData(ISSPosition position, double brightness)
        {
            SpotData d = new SpotData();

            d.Altitute      = position.Altitute;
            d.Azimuth       = position.Azimuth;
            d.Brightness    = brightness;
            d.StartTime     = position.Time;
            d.TimeRemaining = position.Time - DateTime.Now;

            if (d.TimeRemaining < TimeSpan.Zero)
            {
                d.TimeRemaining = TimeSpan.Zero;
            }

            return(d);
        }
Ejemplo n.º 2
0
        private SpotData GetSpotData(ISSPosition position, double brightness)
        {
            SpotData d = new SpotData();
            d.Altitute = position.Altitute;
            d.Azimuth = position.Azimuth;
            d.Brightness = brightness;
            d.StartTime = position.Time;
            d.TimeRemaining = position.Time - DateTime.Now;

            if (d.TimeRemaining < TimeSpan.Zero)
            {
                d.TimeRemaining = TimeSpan.Zero;
            }

            return d;
        }