private void toolStripButton2_Click(object sender, EventArgs ee) { MessageBox.Show(ViewMatchOverDays.ToString()); AuditForecastAlgorithm f = new AuditForecastAlgorithm(ViewMatchOverDays); int pb = f.idExc.Count(); MessageBox.Show(pb.ToString()); if (pb != 0) { using (DataClassesMatchDataContext matches = new DataClassesMatchDataContext()) { dMatch.dHome = matches.result_tb_lib.ToLookup(e => e.home_team_big); dMatch.dAway = matches.result_tb_lib.ToLookup(e => e.away_team_big); } toolStripProgressBar1.Maximum = pb; f.top20Algorithm(); } MessageBox.Show("OK"); }
private void toolStripButton2_Click(object sender, EventArgs ee) { toolStripLabel1.Text = "auditAnalysis"; try { this.tabControl1.SelectedTab = this.tabPage12; //MessageBox.Show(ViewMatchOverDays.ToString()); toolStripLabel2.Text = ViewMatchOverDays.ToString(); Thread.Sleep(1); AuditForecastAlgorithm f = new AuditForecastAlgorithm(ViewMatchOverDays); int pb = f.idExc.Count(); //MessageBox.Show(pb.ToString()); toolStripLabel2.Text = pb.ToString(); Thread.Sleep(1); if (pb != 0) { toolStripProgressBar1.Maximum = pb; f.top20Algorithm(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } finally { //MessageBox.Show("OK"); toolStripLabel2.Text = "OK"; Thread.Sleep(1); } }
private void button25_Click_1(object sender, EventArgs eeee) { int overday = -370; //try //{ MessageBox.Show(overday.ToString()); AuditForecastAlgorithm f = new AuditForecastAlgorithm(overday); int pb = f.idExc.Count(); MessageBox.Show(pb.ToString()); if (pb != 0) { //dMatch.dNew = false; //dMatch.LoadMatchData(true); toolStripProgressBar1.Maximum = pb; f.top20Algorithm(); } //} //catch (Exception ex) //{ // MessageBox.Show(ex.ToString()); //} GC.Collect(); GC.Collect(); Application.DoEvents(); MessageBox.Show("OK"); try { UpdateAnalysisResult u = new UpdateAnalysisResult(); //int pb = u.ExecUpateCount; MessageBox.Show(pb.ToString()); toolStripProgressBar1.Maximum = pb; u.ExecUpdate(); } catch (Exception ex) { MessageBox.Show(ex.ToString()); } MessageBox.Show("OK"); }
private void toolStripButton2_Click(object sender, EventArgs ee) { MessageBox.Show(ViewMatchOverDays.ToString()); AuditForecastAlgorithm f = new AuditForecastAlgorithm(ViewMatchOverDays); int pb = f.idExc.Count(); MessageBox.Show(pb.ToString()); if (pb != 0) { using (SoccerScoreSqlite matches = new SoccerScoreSqlite(Conn.cnn)) { dMatch.dHome = matches.ResultTBLib.ToLookup(e => e.HomeTeamBig); dMatch.dAway = matches.ResultTBLib.ToLookup(e => e.AwayTeamBig); } toolStripProgressBar1.Maximum = pb; f.top20Algorithm(); } }
private void toolStripButton2_Click(object sender, EventArgs ee) { MessageBox.Show(ViewmatchOverDays.ToString()); AuditForecastAlgorithm f = new AuditForecastAlgorithm(ViewmatchOverDays); int pb = f.idExc.Count(); MessageBox.Show(pb.ToString()); if (pb != 0) { //using (SoccerScoreCompact match = new SoccerScoreCompact(cnn)) //{ dmatch.dHome = Conn.match.Result_tb_lib.ToLookup(e => e.Home_team_big); dmatch.dAway = Conn.match.Result_tb_lib.ToLookup(e => e.Away_team_big); //} toolStripProgressBar1.Maximum = pb; f.top20Algorithm(); } }