void OnProgressChanged(int percent) { if (DownloadProgressChanged != null) DownloadProgressChanged.Invoke(this, new DownloadEventArgs { Percentage=percent }); }