Esempio n. 1
0
 /// <summary>
 /// Shows the guide market place if this player can purchase content;
 /// otherwise shows an appropriate message.
 /// </summary>
 public static void PurchaseContent(this PlayerIndex player)
 {
     try
     {
         if (player.CanPurchaseContent())
         {
             Guide.ShowMarketplace(player);
         }
         else
         {
             Guide.BeginShowMessageBox(
                 player,
                 Resources.PurchaseFailedTitle,
                 Resources.PurchaseFailedText,
                 new string[] { Resources.PurchaseFailedButton },
                 0,
                 MessageBoxIcon.Warning,
                 r => Guide.EndShowMessageBox(r),
                 null);
         }
     }
     catch (Exception e)
     {
         System.Diagnostics.Debug.WriteLine(e);
     }
 }