Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (path == string.Empty || path == null)
            {
                MessageBox.Show("请选择扫描件存放路径!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            IsDeleteOld = checkBox1.Checked ? true : false;

            if (Directory.Exists(path))
            {
                photoList = ImageClass.GetPhotoList(path);

                //ThreadStart delegate_thread = delegate()
                //{
                //    UploadYJ();
                //};
                //Thread thread_upload = new Thread(delegate_thread);
                //thread_upload.Start();
                inputThread = new Thread(new ThreadStart(UploadYJ));
                inputThread.Start();
                this.button2.Enabled = false;
                timer1.Enabled       = true;
            }
        }