Example #1
0
        public AsyncProgressResult DownloadAsync()
        {
            thread = new Thread(new ThreadStart(() => Download()));

            progress.Reset();
            thread.Start();

            return(new AsyncProgressResult(ref progress));
        }
Example #2
0
        public AsyncProgressResult BeginTransations()
        {
            progress.Reset();

            Thread th = new Thread(new ThreadStart(DoTransactions));

            th.Start();

            return(new AsyncProgressResult(ref progress));
        }