Exemplo n.º 1
0
        public AsyncProgressResult DownloadAsync()
        {
            thread = new Thread(new ThreadStart(() => Download()));

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

            return(new AsyncProgressResult(ref progress));
        }
Exemplo n.º 2
0
        public AsyncProgressResult BeginTransations()
        {
            progress.Reset();

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

            th.Start();

            return(new AsyncProgressResult(ref progress));
        }