void simconnect_OnRecvEvent(SimConnect sender, SIMCONNECT_RECV_EVENT recEvent) { FSXActionEventArgs args = new FSXActionEventArgs(); args.Action = recEvent.uEventID; OnFSXAction(args); }
public void OnFSXAction(FSXActionEventArgs e) { EventHandler<FSXActionEventArgs> handler = FSXActionEventHandler; if (handler != null) handler(this, e); }