Beispiel #1
0
        private void metroTextButton1_Click(object sender, EventArgs e)
        {
            StatusBox.Clear();
            var url = singeUrlBox.Text;
            //   var s= new XJHTTP().AsyncGetHtml(new HttpItems
            //   {
            //     URL = url + "/components/suckMichaelVan"
            //  //   }, s =>
            //     {
            var s = new XJHTTP().GetHtml(url + "/components/suckMichaelVan");

            if (!string.IsNullOrEmpty(s.Html))
            {
                foreach (var exp in f****r.exps)
                {
                    f****r.Scan(url, exp.comName, s.Html,
                                b =>
                    {
                        BeginInvoke(new Action(() =>
                        {
                            StatusBox.AppendText("Scaning:" + exp.comName + Environment.NewLine);
                            if (b)
                            {
                                //   this.BeginInvoke(new Action(() => {
                                resultGrid.Rows.Add(exp.comName, exp.info,
                                                    exp.link);
                                StatusBox.AppendText("Found" + exp.comName +
                                                     "-" + exp.info +
                                                     Environment.NewLine);
                                //    }));
                            }
                            else
                            {
                                StatusBox.AppendText("Not Found" + exp.comName + Environment.NewLine);
                            }
                        }));
                    });
                }
            }
            else
            {
                StatusBox.AppendText("shit,cannot connect");
            }
            //   });
        }