Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            this.textBox1.Text += "\r\n" + rm.GetString("Info102");
            Application.DoEvents();

            this.button2.Enabled = false;
            this.button1.Enabled = false;


            //定义一个后台线程用于导出数据操作
            IsDownloadDelegate IsDownload = new IsDownloadDelegate(IsDownloadSoft);

            m_sender         = this;
            m_senderDelegate = IsDownload;

            IsDownloading = true;

            Thread t = new Thread(new ThreadStart(DownloadSoft));

            t.IsBackground = true;
            t.Start();


            return;
        }
        private void button2_Click(object sender, EventArgs e)
        {
            this.textBox1.Text += "\r\n" + rm.GetString("Info102");
            Application.DoEvents();

            this.button2.Enabled = false;
            this.button1.Enabled = false;

            //����һ����̨�߳����ڵ������ݲ���
            IsDownloadDelegate IsDownload = new IsDownloadDelegate(IsDownloadSoft);
            m_sender = this;
            m_senderDelegate = IsDownload;

            IsDownloading = true;

            Thread t = new Thread(new ThreadStart(DownloadSoft));
            t.IsBackground = true;
            t.Start();

            return;
        }