コード例 #1
0
 private void toolStripButton_iniToday_Click(object sender, EventArgs e)
 {
     SevenmLiveToSql sevenm = new SevenmLiveToSql();
     sevenm.UpdateTodayMatch();
 }
コード例 #2
0
 private decimal Update_live_Table(string html)
 {
     SevenmLiveToSql sevenlive = new SevenmLiveToSql(html);
     return sevenlive.InsertLiveHtmlTableToDB();
 }
コード例 #3
0
        private void toolStripButton_iniToday_Click(object sender, EventArgs e)
        {
            toolStripLabel1.Text = "updateLiveTable";

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

                insertComplete = false;

                WebLiveDataGet();
                //button1.PerformClick(); //执行及时网页采集

                while (!insertComplete) Application.DoEvents();

                //if (ls.bRegOK)
                //{
                int pb = Int32.Parse(toolStripLabel2.Text);
                toolStripProgressBar1.Maximum = pb;

                SevenmLiveToSql sevenm = new SevenmLiveToSql();
                string sm = sevenm.UpdateTodayMatch();
                toolStripLabel2.Text = sm; Thread.Sleep(1);

                //}
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.ToString());
            }
        }