Example #1
0
 private void DoDownloadCompleted(DownloadCompletedEventArgs arg)
 {
     DownloadCompleted(this, arg);
 }
Example #2
0
        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);
            }
        }