public void ApiEvent(player pl) { // Make sure someone is listening to event if (OnApiEvent == null) { return; } apiEventArgs args = new apiEventArgs(pl); OnApiEvent(this, args); }
private void EA_OnApiEvent(object sender, apiEventArgs e) { /* * plStation = ""; * plStarSystem = ""; * plDocked = "True"; * plShip = ""; * plLoadFSD = "False";*/ this.Dispatcher.Invoke(delegate { refScreen(e.Player); }); }