/// <summary> /// Update from Sim /// </summary> public void OnDataArrival(string dataRefName) { // Maintain the Waypoint Tracker here to support the GPS Flightplan if (SC.SimConnectClient.Instance.GpsModule.IsGpsFlightplan_active) { // WP Enroute Tracker WPTracker.Track( SC.SimConnectClient.Instance.GpsModule.WYP_prevID, SC.SimConnectClient.Instance.GpsModule.WYP_nextID, SC.SimConnectClient.Instance.HudBarModule.SimTime_loc_sec, SC.SimConnectClient.Instance.HudBarModule.Sim_OnGround ); } if (this.Visible) { if (SC.SimConnectClient.Instance.GpsModule.IsGpsFlightplan_active) { _value1.Value = WPTracker.WPTimeEnroute_sec; _value2.Value = WPTracker.TimeEnroute_sec; } else { // No SIM GPS - Flightplan active _value1.Value = null; _value2.Value = null; } } }
private void _label_ButtonClicked(object sender, ClickedEventArgs e) { WPTracker.InitFlight( ); }