Exemple #1
0
        private static void WorkerThread(object state)
        {
            // Start our background worker
            ExportProgress progressForm = new ExportProgress();

            progressForm.exportWorker.RunWorkerAsync(state);

            // Run our message loop
            Application.Run(progressForm);

            // Ensure the worker has cancelled
            progressForm.exportWorker.CancelAsync();
        }
Exemple #2
0
        private void exportImageToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ExportBarcodeImagesForm export = new ExportBarcodeImagesForm();

            if (export.ShowDialog() == DialogResult.OK)
            {
                ExportProgress.Start(
                    _testPlan,
                    export.RootFolder,
                    export.OverwriteFiles,
                    export.FlattenHierarchy);
            }
        }
        private static void WorkerThread(object state)
        {
            // Start our background worker
            ExportProgress progressForm = new ExportProgress ();
            progressForm.exportWorker.RunWorkerAsync (state);

            // Run our message loop
            Application.Run (progressForm);

            // Ensure the worker has cancelled
            progressForm.exportWorker.CancelAsync ();
        }