Esempio n. 1
0
 private void AdressWWW_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         HouseParsed houseParsedwww = new HouseParsed();
     }
 }
Esempio n. 2
0
        private void startparsing_Click(object sender, EventArgs e)
        {
            Controller  controller       = new Controller();
            HouseParsed houseParsedStart = new HouseParsed();

            houseParsedStart.StartPrsingSet(AdressWWW.Text, wwwPag.Text, CodeBlockHtml1.Text, CodeBlockHtml2.Text, textBox1_1.Text, textBox1_2.Text, textBox2_1.Text,
                                            textBox2_2.Text, textBox3_1.Text, textBox3_2.Text, textBox4_1.Text, textBox4_2.Text, textBox5_1.Text, textBox5_2.Text,
                                            textBox6_1.Text, textBox6_2.Text, textBox7_1.Text, textBox7_2.Text, textBox8_1.Text, textBox8_2.Text);
            controller.DelatOldDataBase();
        }
Esempio n. 3
0
        public void loaudHTMLTextBox(string wwwAddresForm, string nrPag)
        {
            Form2       form2            = new Form2();
            Form1       form1            = new Form1();
            HouseParsed houseParsedStart = new HouseParsed();

            if (string.IsNullOrWhiteSpace(form1.AdressWWW.Text))
            {
                throw new ArgumentNullException("Adres strony nie morze być pusty!");
            }
            else
            {
                wwwAddresForm = form1.AdressWWW.Text;
            }

            if (form1.wwwPag.Text.Equals(null))
            {
                throw new ArgumentNullException("Numeracja strony nie morze być pusta!");
            }
            else
            {
                nrPag = form1.wwwPag.Text;
            }
            String Response2;

            System.Net.WebClient wc2 = new System.Net.WebClient();
            wc2.Encoding = Encoding.GetEncoding("UTF-8");
            Response2    = wc2.DownloadString(wwwAddresForm + nrPag);
            if (string.IsNullOrWhiteSpace(Response2))
            {
                throw new ArgumentNullException("Adres strony nie jest poprawny!");
            }
            else
            {
                form2.textBox(Response2);
                form2.Show();
            }
        }