protected virtual void OnGameReadyEvent(GameReadyEventArgs e) { if (GameReadyEvent != null) GameReadyEvent.Invoke(this, e); }
/// <summary> /// GameReady Event /// </summary> /// <param name="sender"></param> /// <param name="gameReadyEventArgs"></param> private void OnGameReadyEvent(object sender, GameReadyEventArgs gameReadyEventArgs) { try { var receivedAreaUpdate = gameReadyEventArgs.Path; if (receivedAreaUpdate == null) { // game not ready, show as message this.ShowInformationOverlay("Game is not ready. Please Wait."); } else { this.ShowEachStepOnStartup(receivedAreaUpdate); } } catch (Exception ex) { this.ShowInformationOverlay(ex.Message); } }