private List <UnBattleCharItem> GetUnbattleCharacter(int selectedCharacterNum)
        {
            if (this.IsCanGetUnbattleChar)
            {
                string url         = this.DetectionParamsItem.CurrentGameServer.UnBattleCharacterUrl;
                string postContent = string.Format(this.PostCharacterContentFormat, selectedCharacterNum);
                string content     = string.Empty;

                HttpWebRequest httpRequest = this.WriteToHttpWebRequest(url, postContent);
                if (httpRequest == null)
                {
                    content = HttpHelperBase.HTTPERROR;
                }
                else
                {
                    content = this.ReadFromHttpWebResponse(httpRequest);
                    if (!string.IsNullOrEmpty(content) && !this.IsContains(content, "You have no characters on", "Please choose a different realm"))
                    {
                        USUnbattleCharGetter cg = new USUnbattleCharGetter(this.DetectionParamsItem.AvailableCharacterLevel);
                        return(cg.GetCharacter(ref content));
                    }
                }
            }
            return(null);
        }
 private void GetUnbattleRealm()
 {
     if (USBattleLoginHttper.realmList.Count == 0)
     {
         if (IsCanGetUnbattleChar)
         {
             string url  = this.DetectionParamsItem.CurrentGameServer.UnBattleCharacterUrl;
             string html = this.ReadFromUrl(url);
             if (!string.IsNullOrEmpty(html))
             {
                 USUnbattleCharGetter cg = new USUnbattleCharGetter(70);
                 USBattleLoginHttper.realmList = cg.GetRealms(ref html);
             }
         }
     }
 }