public AsyncProgressResult DownloadAsync() { thread = new Thread(new ThreadStart(() => Download())); progress.Reset(); thread.Start(); return(new AsyncProgressResult(ref progress)); }
public AsyncProgressResult BeginTransations() { progress.Reset(); Thread th = new Thread(new ThreadStart(DoTransactions)); th.Start(); return(new AsyncProgressResult(ref progress)); }