Пример #1
0
        private void UpdateUi()
        {
            TxtCourse.Text = Course.ToString(CultureInfo.InvariantCulture);
            TxtSpeed.Text  = Speed.ToString(CultureInfo.InvariantCulture);

            TxtAverage.Text    = AverageSpeed.ToString(CultureInfo.InvariantCulture);
            TxtTrackSpeed.Text = TrackSpeed.ToString(CultureInfo.InvariantCulture);

            TxtTime.Text         = Time.ToString("HH:mm:ss");
            TxtSattelites.Text   = Sattelites.ToString(CultureInfo.InvariantCulture);
            TxtTargetSpeed.Text  = TargetSpeed.ToString(CultureInfo.InvariantCulture);
            TxtToleranceKmh.Text = ToleranceSpeed.ToString(CultureInfo.InvariantCulture);
            TxtTimeFactor.Text   = ToleranceSeconds.ToString(CultureInfo.InvariantCulture);
        }
Пример #2
0
 public IEnumerable <Body> GetAllOrbits()
 {
     return(Sattelites.SelectMany(s => s.GetAllOrbits()).Union(Sattelites));
 }
Пример #3
0
 public void AddOrbitter(Body sattelite)
 {
     sattelite.Parent = this;
     Sattelites.Add(sattelite);
 }