private void button36_Click(object sender, EventArgs e) { OkooHtmlToSql okoo = new OkooHtmlToSql(webBrowser2.Document.Body.InnerHtml); toolStripLabel2.Text = okoo.updateLiveOkoo().ToString(); MessageBox.Show("OK"); }
private void button20_Click(object sender, EventArgs e) { WebRequest req = WebRequest.Create("http://buy.okooo.com/Lottery06/BJBetIndex.php?LotteryType=WDL"); req.Proxy = null; OkooHtmlToSql okoo = null; using (WebResponse res = req.GetResponse()) using (Stream s = res.GetResponseStream()) using (StreamReader sr = new StreamReader(s, System.Text.Encoding.Default)) okoo = new OkooHtmlToSql(sr.ReadToEnd()); toolStripLabel2.Text = okoo.updateLiveOkoo().ToString(); MessageBox.Show("OK"); }