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); }
public IEnumerable <Body> GetAllOrbits() { return(Sattelites.SelectMany(s => s.GetAllOrbits()).Union(Sattelites)); }
public void AddOrbitter(Body sattelite) { sattelite.Parent = this; Sattelites.Add(sattelite); }