private void ImportBackGround() { if (day != 0 && month != 0 && year != 0) { StoreController storeController = new StoreController(); importReport = storeController.StoreMatches(backgroundWorker1, day, month, year, lblStoreStatus); } }
//----- private void ShowImportReportValues(ImportReport importReport) { lblImportDate.Text = importReport.ImportDate; lblImportMatch.Text = importReport.NewMatchCount.ToString(); lblImportLeague.Text = importReport.NewLeagueCount.ToString(); lblImportTeam.Text = importReport.NewTeamCount.ToString(); lblImportFullOdd.Text = importReport.NewFullOddCount.ToString(); lblImportMatchResult.Text = importReport.NewMatchResultCount.ToString(); lblImportGeneralResult.Text = importReport.NewGeneralResultCount.ToString(); lblRemovedOddComb.Text = importReport.RemovedOddCombinationCount.ToString(); lblNewOddComb.Text = importReport.NewOddCombinationCount.ToString(); lblUpdatedOddComb.Text = importReport.UpdatedOddCombinationCount.ToString(); lblNewPartialOdd.Text = importReport.NewPartialOddCount.ToString(); lblUpdatedPartialOdd.Text = importReport.UpdatedPartialOddCount.ToString(); }
public ImportReport StoreMatches(BackgroundWorker backgroundWorker, int day, int month, int year, Label lblStoreStatus) { this.lblStoreStatus = lblStoreStatus; ImportReport = new ImportReport(); SetAnalysedMatches(day, month, year); ResultControls(); LeagueControls(); TeamControls(); DateTimeControls(day, month, year); FullOddControls(); MatchControls(backgroundWorker); PartialOddUpdateControls(backgroundWorker); OddCombinationUpdateControls(backgroundWorker); FullOddUpdateControls(backgroundWorker); RemoveAnalysedMatches(day, month, year); backgroundWorker.ReportProgress(100); return(ImportReport); }