Exemple #1
0
 public void GetCrowns()
 {
     CrownsOpened = true;
     if (Program.steamActive || Program.aeriaInstall)
     {
         this.SwitchPanel(7);
     }
     else
     {
         TimeSpan span = (TimeSpan)(DateTime.Now - lastCrownsOpened);
         if (span.TotalSeconds >= 5.0)
         {
             lastCrownsOpened = DateTime.Now;
             if (GameEngine.Instance.World.isBigpointAccount || Program.bigpointPartnerInstall)
             {
                 TimeSpan span2 = (TimeSpan)(DateTime.Now - lastUpdatedBPURL);
                 if ((bigpointURL == string.Empty) || (span2.TotalMinutes >= 2.0))
                 {
                     this.GetBigpointURL();
                 }
                 else
                 {
                     try
                     {
                         Process.Start(bigpointURL);
                     }
                     catch (Exception)
                     {
                         this.fireURLError();
                     }
                 }
             }
             else
             {
                 string fileName = (URLs.ProfilePaymentURL + "?u=" + RemoteServices.Instance.UserGuid.ToString().Replace("-", "") + "&s=" + RemoteServices.Instance.SessionGuid.ToString().Replace("-", "")) + "&lang=" + Program.mySettings.LanguageIdent.ToLower();
                 if (Program.arcInstall)
                 {
                     Program.arc_openURL("https://billing.arcgames.com/" + Program.mySettings.languageIdent);
                     InterfaceMgr.Instance.closePlayCardsWindow();
                     TutorialPanel.minimizeTutorial();
                 }
                 else
                 {
                     if (Program.gamersFirstInstall)
                     {
                         fileName = (URLs.ProfileGamersFirstPaymentURL + "?shk_userguid=" + RemoteServices.Instance.UserGuid.ToString().Replace("-", "") + "&shk_sessionguid=" + RemoteServices.Instance.SessionGuid.ToString().Replace("-", "")) + "&lang=" + Program.mySettings.LanguageIdent.ToLower();
                     }
                     try
                     {
                         Process.Start(fileName);
                     }
                     catch (Exception)
                     {
                         this.fireURLError();
                     }
                 }
             }
         }
     }
 }