private void ParsePage() { if (!String.IsNullOrEmpty(battlelogPage)) { var re = new Regex(tokenRE); var matches = re.Matches(battlelogPage); foreach (Match m in matches) { if (m.Groups.Count > 2) { var bs = new BattlelogSocket(); bs.OnMessage += OnMessage; bs.OnOpen += OnOpen; bs.Connect(m.Groups[4].Value, m.Groups[3].Value, m.Groups[2].Value, m.Groups[1].Value); battleSockets.Add(new BattlelogSocket()); Debug.Print(String.Format("{0} {1} {2} {3}", bs.channel, bs.host, bs.token, bs.userid)); } } } }
private void ParsePage() { if (!String.IsNullOrEmpty(battlelogPage)) { var re = new Regex( tokenRE ); var matches = re.Matches( battlelogPage ); foreach (Match m in matches) { if (m.Groups.Count > 2) { var bs = new BattlelogSocket(); bs.OnMessage += OnMessage; bs.OnOpen += OnOpen; bs.Connect(m.Groups[4].Value, m.Groups[3].Value, m.Groups[2].Value, m.Groups[1].Value); battleSockets.Add( new BattlelogSocket() ); Debug.Print(String.Format("{0} {1} {2} {3}",bs.channel, bs.host,bs.token, bs.userid )); } } } }