Ejemplo n.º 1
0
        private void btnSupplierAll_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            MTGCrawler.MTGCrawler cr = new MTGCrawler.MTGCrawler();
            var card = cr.FetchAll(textBox1.Text);

            dataGridView1.DataSource = card;
            Cursor.Current           = Cursors.Default;
        }
Ejemplo n.º 2
0
        private void btnWatchListCheck_Click(object sender, EventArgs e)
        {
            Cursor.Current = Cursors.WaitCursor;
            List <string> list = Properties.Settings.Default["WatchList"] as List <string>;

            if (list == null)
            {
                list = new List <string>();
            }

            var cards = new List <Card>();

            foreach (var item in list)
            {
                MTGCrawler.MTGCrawler cr = new MTGCrawler.MTGCrawler();
                var card = cr.FetchAll(item);
                cards.AddRange(card);
            }

            dataGridView1.DataSource = cards;
            Cursor.Current           = Cursors.Default;
        }