private decimal Update_result_tb(string html)
 {
     SevenmResultToSql sevenresult = new SevenmResultToSql(html);
     return sevenresult.InsertLastHtmlTableToDB();
 }
 private void toolStripButton_iniLast_Click(object sender, EventArgs e)
 {
     using (DataClassesMatchDataContext matches = new DataClassesMatchDataContext())
     {
         int pb = matches.result_tb.Count();
         toolStripProgressBar1.Maximum = pb;
         MessageBox.Show(pb.ToString());
     }
     SevenmResultToSql sevenm = new SevenmResultToSql();
     sevenm.UpdateLastMatch();
 }
        private void toolStripButton_iniLast_Click(object sender, EventArgs e)
        {
            toolStripLabel1.Text = "updateResultTable";

            try
            {
                this.tabControl1.SelectedTab = this.tabPage1;


                if (Conn.CreateTable(typeof(Result_tb)))
                    Conn.CompressCompact();


                #region

                Application.DoEvents();

                datahtml = false;

                WebHistoryDataGet(); //button2.PerformClick();//执行历史网页采集

                while (!datahtml) Application.DoEvents();

                #endregion

                using (DataClassesMatchDataContext matches = new DataClassesMatchDataContext(Conn.conn))
                {
                    int pb = matches.Result_tb.Count();
                    toolStripProgressBar1.Maximum = pb;

                    //MessageBox.Show(pb.ToString());
                    toolStripLabel2.Text = pb.ToString(); Thread.Sleep(1);
                }
                SevenmResultToSql sevenm = new SevenmResultToSql();
                sevenm.UpdateLastMatch();

                //执行分析数据的更新

                UpdateAnalysisResult_today();

            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }
 private void toolStripButton_iniLast_Click(object sender, EventArgs e)
 {
     using (SoccerScoreSqlite matches = new SoccerScoreSqlite(Conn.cnn))
     {
         int pb = matches.ResultTB.Count();
         toolStripProgressBar1.Maximum = pb;
         MessageBox.Show(pb.ToString());
     }
     SevenmResultToSql sevenm = new SevenmResultToSql();
     sevenm.UpdateLastMatch();
 }
 //此项目不用?????
 //批量导入 Result_tb_lib数据,并且做修正  ?
 private void BatchUpdateLastMatch()
 {
     using (DataClassesMatchDataContext matches = new DataClassesMatchDataContext(Conn.conn))
     {
         int pb = matches.Result_tb.Count();
         toolStripProgressBar1.Maximum = pb;
         MessageBox.Show(pb.ToString());
     }
     SevenmResultToSql sevenm = new SevenmResultToSql();
     sevenm.BatchUpdateLastMatch();
 }
 private void toolStripButton_iniLast_Click(object sender, EventArgs e)
 {
     //using (SoccerScoreCompact match = new SoccerScoreCompact(cnn))
     //{
     int pb = Conn.match.Result_tb.Count();
         toolStripProgressBar1.Maximum = pb;
         MessageBox.Show(pb.ToString());
     //}
     SevenmResultToSql sevenm = new SevenmResultToSql();
     sevenm.UpdateLastmatch();
 }