Пример #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            button2.Enabled = false;
            tudou           = new Tudou();
            tudou.WC        = new MyWebClient();
            if (!tudou.SetType(cbType.SelectedItem.ToString()))
            {
                MessageBox.Show("需要选择类型");
                return;
            }

            tudou.RunWorkerCompleted += new RunWorkerCompletedEventHandler(tudou_RunWorkerCompleted);
            tudou.ProgressChanged    += new ProgressChangedEventHandler(tudou_ProgressChanged);
            tryDoTudou();
        }
Пример #2
0
 void initTudou()
 {
     tudou = new Tudou();
     cbType.Items.Clear();
     cbType.Items.AddRange(tudou.dicTypeURL.Keys.ToArray <string>());
 }