Exemple #1
0
 private void toolStripButton7_Click(object sender, EventArgs e)
 {
     HttpCodeLib.XJHTTP xj = new HttpCodeLib.XJHTTP();
     var html1 = xj.GetHtml("http://nufm3.dfcfw.com/EM_Finance2014NumericApplication/JS.aspx?type=CT&cmd=SZ&sty=UDFN&st=z&sr=&p=&ps=&token=44c9d251add88e27b65ed86506f6e5da").Html;
     var str = xj.GetStringMid(html1,"\"","\"").Split(new char[]{','});
     MessageBox.Show(str[0]);
 }
Exemple #2
0
        private string[] getStkInfo(string _stkCode)
        {
            string[]           stkinfo;
            HttpCodeLib.XJHTTP xj   = new HttpCodeLib.XJHTTP();
            string             url  = "http://qt.gtimg.cn/q=" + codeTrans(_stkCode);
            string             html = xj.GetHtml(url).Html;

            stkinfo = html.Split(new char[] { '~' });
            return(stkinfo);
        }
Exemple #3
0
        private void getMarketPic()
        {
            xj = new HttpCodeLib.XJHTTP();
            var rtn1 = xj.GetImageByImage(market1_url, "", null);
            var rtn2 = xj.GetImageByImage(market2_url, "", null);
            var rtn3 = xj.GetImageByImage(market3_url, "", null);

            ShowTextBox(pictureBox1, MakeGrayscale((Bitmap)rtn1));
            ShowTextBox(pictureBox2, MakeGrayscale((Bitmap)rtn2));
            ShowTextBox(pictureBox3, MakeGrayscale((Bitmap)rtn3));
        }
Exemple #4
0
        private static string GetHtmlSource(string url)
        {
            string result = "";

            try
            {
                HttpCodeLib.XJHTTP xj = new HttpCodeLib.XJHTTP();
                result = xj.GetHtml(url).Html;
            }
            catch
            {
                result = "";
            }
            return(result);
        }