Exemplo n.º 1
0
        private void BwGetCOLLECTION_DoWork(object sender, DoWorkEventArgs e)
        {
            // This event handler is where the actual work is done.
            // This method runs on the background thread.
            BackgroundWorker worker = (BackgroundWorker)sender;

            // Get the BackgroundWorker object that raised this event.
            MC = (MyCollection)e.Argument;
            MC.Create(worker, e);
        }