Ejemplo n.º 1
0
        private void buttonSetPosition_Click(object sender, EventArgs e)
        {
            SIMCONNECT_DATA_LATLONALT observerLLA = new SIMCONNECT_DATA_LATLONALT();

            observerLLA.Latitude  = TryParseDouble(textBoxMPosLat.Text);
            observerLLA.Longitude = TryParseDouble(textBoxMPosLong.Text);
            observerLLA.Altitude  = TryParseDouble(textBoxMPosAlt.Text);

            simconnect.SetObserverPosition(textBoxMObserverName.Text, observerLLA);
        }