private void UpdateMatchlist() { //Deserialize our stored data DeserializeMatchData(); DeserializeAdditionalDemoData(); //Parsing MatchData for UI Application.Current.Dispatcher.Invoke(new Action(() => { ParseMatchData(mainMatchList, _accountId); })); //Thread for Uploading MatchLinks to DB ThreadStart uploadThreadStart = this.UploadMatchData; Thread uploadThread = new Thread(uploadThreadStart); uploadThread.Start(); //Creating a HashSet of all SteamIds HashSet <long> steamIdsHashSet = new HashSet <long>(); foreach (var cDataGccStrike15V2MatchInfo in mainMatchList.matches) { foreach (var accountId in cDataGccStrike15V2MatchInfo.roundstats.reservation.account_ids) { steamIdsHashSet.Add((accountId + VOLVOMAGICNUMBER)); } } //Initializing VACStat_us Control VACStat_usSender.Initialize(steamIdsHashSet); //Initializing VacWatch_nl Control VacWatch_nlSender.Initialize(steamIdsHashSet, _accountId + VOLVOMAGICNUMBER); }
private void UploadToVacWatchCheckBox_OnChecked(object sender, RoutedEventArgs e) { VacWatch_nlSender.Send(); }