Пример #1
0
        protected virtual void OnDownloadChanged(DownloadProgChanged args)
        {
            EventHandler <DownloadProgChanged> eventHandle = DownloadProgressUpdated;

            if (eventHandle != null)
            {
                eventHandle(this, args);
            }
        }
Пример #2
0
        private void DownloadClient_DownloadProgressChanged(object sender, DownloadProgressChangedEventArgs e)
        {
            //throw new NotImplementedException();
            //File.AppendAllText("yo.txt",e.ProgressPercentage.ToString());
            DownloadProgChanged args = new DownloadProgChanged();

            args.DownloadPercentage = e.ProgressPercentage;
            OnDownloadChanged(args);
        }