Esempio n. 1
0
        private OrderUpdate xx()
        {
            HttpWebPage openWeb   = new HttpWebPage();
            string      activeUrl = "http://www.mysdic.com/join/invite.html";
            string      tempHtml  = openWeb.DoGet(activeUrl);
            string      count1    = tempHtml.Abstract("fnt_24", "详细内容");

            if (count1.Contains("招聘"))
            {
                List <string> ss = RegexHelper.GetMatchsList(@"\d{4}年\d{2}月\d{2}日", count1);
                if (ss.Count > 0)
                {
                    DateTime start = this.dateTimePicker1.Value;
                    DateTime end   = new DateTime(
                        int.Parse(ss[0].Abstract("", "年")),
                        int.Parse(ss[0].Abstract("年", "月")),
                        int.Parse(ss[0].Abstract("月", "日")));
                    TimeSpan ts = end - start;
                    if (ts.TotalSeconds > 0)
                    {
                        this.dateTimePicker1.Value = end;
                        OrderUpdate record = new OrderUpdate();
                        record.Price    = ss[0];
                        record.Quantity = count1.Abstract("blank\">​", "</a>");
                        return(record);
                    }
                }
            }
            return(null);
        }
Esempio n. 2
0
        void tm_Tick(object sender, EventArgs e)
        {
            HttpWebPage openWeb = new HttpWebPage();

            //openWeb.DoGet("");
            autoEvent.Set();
        }