private void DoDownloadCompleted(DownloadCompletedEventArgs arg) { DownloadCompleted(this, arg); }
private void OnDownloadCompleted(Control caller, string fileName) { var arg = new DownloadCompletedEventArgs() { FileName = fileName }; if (caller.InvokeRequired) { caller.BeginInvoke(new DownloadCompletedEventHandler(DownloadCompleted), caller, arg); } else { DoDownloadCompleted(arg); } }