예제 #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);
            }
        }