Example #1
0
 protected virtual void OnGameReadyEvent(GameReadyEventArgs e)
 {
     if (GameReadyEvent != null) GameReadyEvent.Invoke(this, e);
 }
Example #2
0
 /// <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);
     }
 }