public FrmPushJobCrawler() { InitializeComponent(); this.productAdapter = new ProductAdapter(new Entities.Data.SqlDb(QT.Entities.Server.ConnectionString)); this.crawlerAdapter = new CrawlerProductAdapter(new SqlDb(QT.Entities.Server.ConnectionStringCrawler)); }
public FrmPushJobCrawler(string textQuery, string queueName, int typeCrawler) { InitializeComponent(); this.productAdapter = new ProductAdapter(new Entities.Data.SqlDb(QT.Entities.Server.ConnectionString)); this.crawlerAdapter = new CrawlerProductAdapter(new SqlDb(QT.Entities.Server.ConnectionStringCrawler)); this.txtQueueName.Text = queueName; this.txtQuery.Text = textQuery; this.spinTypeCrawler.Value = typeCrawler; }