public Form1()
        {
            InitializeComponent();
            webExtractor1 = new WebExtractor(webBrowser1);
            view1 = new View(textBox1, textBox2, listView1, listView2, dateTimePicker1, webExtractor1);
            webExtractor1.addObserver(view1);

            ListInit init = new ListInit();
            for (int i = 0; i < init.Codes.Count; i++)
            {
                string line = string.Format("{0} - {1}", init.Codes.ElementAt(i), init.Descriptions.ElementAt(i));

                ListViewItem item = new ListViewItem(line);
                item.Tag = init.Codes.ElementAt(i);
                listView1.Items.Add(item);

                item = new ListViewItem(line);
                item.Tag = init.Codes.ElementAt(i);
                listView2.Items.Add(item);
            }
        }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();
            webExtractor1 = new WebExtractor(webBrowser1);
            view1         = new View(textBox1, textBox2, listView1, listView2, dateTimePicker1, webExtractor1);
            webExtractor1.addObserver(view1);

            ListInit init = new ListInit();

            for (int i = 0; i < init.Codes.Count; i++)
            {
                string line = string.Format("{0} - {1}", init.Codes.ElementAt(i), init.Descriptions.ElementAt(i));

                ListViewItem item = new ListViewItem(line);
                item.Tag = init.Codes.ElementAt(i);
                listView1.Items.Add(item);

                item     = new ListViewItem(line);
                item.Tag = init.Codes.ElementAt(i);
                listView2.Items.Add(item);
            }
        }