예제 #1
0
        private void GlobalProgress_Received(GlobalProgress progress)
        {
            Console.WriteLine("[Downloader] GlobalProgress");
            Console.WriteLine("[Downloader] GlobalProgress Total : {0}", progress.Total);
            Console.WriteLine("[Downloader] GlobalProgress Written : {0}", progress.Written);

            _progressevent(progress);
            if (progress.Total == progress.Written)
            {
                _timer.Change(int.MaxValue, int.MaxValue);
            }
        }
		private void GlobalProgress_Received(GlobalProgress progress) {

			Console.WriteLine ("[Downloader] GlobalProgress");
			Console.WriteLine ("[Downloader] GlobalProgress Total : {0}", progress.Total);
			Console.WriteLine ("[Downloader] GlobalProgress Written : {0}", progress.Written);

			_progressevent (progress);
			if (progress.Total == progress.Written) {
				_timer.Change (int.MaxValue, int.MaxValue);
			}

		}