示例#1
0
文件: VForm.cs 项目: windrobin/kumpro
        private void UploadThem(String[] alfp, Uri baseUri)
        {
            BackgroundWorker bwIO = new BackgroundWorker();

            ManualResetEvent cancel = new ManualResetEvent(false);

            using (NowUpForm form = new NowUpForm(bwIO, cancel)) {
                Uploader io = new Uploader(conn, this, form, cancel);
                bwIO.DoWork += delegate(object sender, DoWorkEventArgs e) {
                    io.UploadThem(alfp, baseUri);
                };

                form.ShowDialog(this);
            }
        }
示例#2
0
文件: VForm.cs 项目: windrobin/kumpro
        private void UploadThem(String[] alfp, Uri baseUri) {
            BackgroundWorker bwIO = new BackgroundWorker();

            ManualResetEvent cancel = new ManualResetEvent(false);
            using (NowUpForm form = new NowUpForm(bwIO, cancel)) {
                Uploader io = new Uploader(conn, this, form, cancel);
                bwIO.DoWork += delegate(object sender, DoWorkEventArgs e) {
                    io.UploadThem(alfp, baseUri);
                };

                form.ShowDialog(this);
            }
        }