Exemplo n.º 1
0
        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);
            }
        }
Exemplo n.º 2
0
        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);
            }
        }