Exemplo n.º 1
0
 public Form1()
 {
     InitializeComponent();
     urlRepository      = new classes.UrlRepository();
     htmlRepository     = new classes.HtmlRepository();
     sentenceRepository = new classes.SentenceRepository();
     keywordScrapper    = new classes.KeywordScrapper(htmlRepository, sentenceRepository);
     htmlDownloader     = new classes.HtmlDownloader(htmlRepository, urlRepository);
     comboBox1.Items.Add(1);
     comboBox1.Items.Add(2);
     comboBox1.Items.Add(3);
     comboBox1.Items.Add(4);
     comboBox1.Items.Add(5);
     comboBox1.Items.Add(6);
     comboBox1.Items.Add(7);
     comboBox1.Items.Add(8);
     comboBox1.Items.Add(9);
     comboBox1.Text     = "1";
     firstUrlInput.Text = "https://";
 }
Exemplo n.º 2
0
 public HtmlDownloader(HtmlRepository htmlRepository, UrlRepository urlRepository)
 {
     this.htmlRepository = htmlRepository;
     this.urlRepository  = urlRepository;
 }