private static async Task<bool> GetAccountGames(Account account, string html) { if (!html.Contains("<title>Battle.net Account</title>")) html = await account.Client.GetHTML(GetRegionURL(account.Region, false)); html = html.Remove(0, html.IndexOf("Your Game Accounts")); html = html.Remove(html.IndexOf("Add a Game Key")); if (html.Contains("Overwatch® Beta")) { account.HasOverwatchBeta = true; BetaFoundEventArgs e = new BetaFoundEventArgs(); e.Account = account; NotifyBetaFound(e); } return true; }
private static void NotifyBetaFound(BetaFoundEventArgs e) { if (BetaFound != null) BetaFound(null, e); }