//运用DateTable逐步计算,从最近到最远进行拟合 private void toolStripButton_resultEvaluate_Click(object sender, EventArgs c) { ForecastAlgorithm f = new ForecastAlgorithm(); 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"); }
//运用DateTable逐步计算,从最近到最远进行拟合 private void toolStripButton_resultEvaluate_Click(object sender, EventArgs c) { ForecastAlgorithm f = new ForecastAlgorithm(); 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(); } }
//运用DateTable逐步计算,从最近到最远进行拟合 private void toolStripButton_resultEvaluate_Click(object sender, EventArgs c) { toolStripLabel1.Text = "resultEvaluate"; try { this.tabControl1.SelectedTab = this.tabPage12; ForecastAlgorithm f = new ForecastAlgorithm(); f.DeleteRedundancy(); 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()); } //MessageBox.Show("OK"); toolStripLabel2.Text = "OK"; Thread.Sleep(1); }
//运用DateTable逐步计算,从最近到最远进行拟合 private void toolStripButton_resultEvaluate_Click(object sender, EventArgs c) { ForecastAlgorithm f = new ForecastAlgorithm(); 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(); } }