private void buttonSetRotation_Click(object sender, EventArgs e) { SIMCONNECT_DATA_PBH observerPBH = new SIMCONNECT_DATA_PBH(); observerPBH.Pitch = TryParseDouble(textBoxMPitch.Text); observerPBH.Bank = TryParseDouble(textBoxMBank.Text); observerPBH.Heading = TryParseDouble(textBoxMHeading.Text); simconnect.SetObserverRotation(textBoxMObserverName.Text, observerPBH); }