Exemplo n.º 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();
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 3
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 ();
        }