/// <summary>
        /// 引发 <see cref="PackageExtractionEnd" /> 事件
        /// </summary>
        /// <param name="ea">包含此事件的参数</param>
        protected virtual void OnPackageExtractionEnd(PackageEventArgs ea)
        {
            var handler = PackageExtractionEnd;

            if (handler != null)
            {
                handler(this, ea);
            }
        }
        /// <summary>
        /// 引发 <see cref="PackageDownloadRetried" /> 事件
        /// </summary>
        /// <param name="ea">包含此事件的参数</param>
        public virtual void OnPackageDownloadRetried(PackageEventArgs ea)
        {
            var handler = PackageDownloadRetried;

            if (handler != null)
            {
                handler(this, ea);
            }
        }
        /// <summary>
        /// 引发 <see cref="PackageHashMismatch" /> 事件
        /// </summary>
        /// <param name="ea">包含此事件的参数</param>
        public virtual void OnPackageHashMismatch(PackageEventArgs ea)
        {
            var handler = PackageHashMismatch;

            if (handler != null)
            {
                handler(this, ea);
            }
        }
Пример #4
0
        protected override void OnDecompressPackage(FSLib.App.SimpleUpdater.PackageEventArgs e)
        {
            //Package有可能为null因为这个事件比较特殊,在所有的包开始解压缩之前会提前触发一次用作提醒,此时是没有包的。
            if (e.Package == null)
            {
                return;
            }

            label1.Text = "正在解压缩 " + (e.Package.PackageName ?? "");
            base.OnDecompressPackage(e);
        }
Пример #5
0
		/// <summary>
		/// 引发 <see cref="PackageExtractionEnd" /> 事件
		/// </summary>
		/// <param name="ea">包含此事件的参数</param>
		protected virtual void OnPackageExtractionEnd(PackageEventArgs ea)
		{
			var handler = PackageExtractionEnd;
			if (handler != null)
				handler(this, ea);
		}
Пример #6
0
		/// <summary>
		/// 引发 <see cref="PackageDownloadRetried" /> 事件
		/// </summary>
		/// <param name="ea">包含此事件的参数</param>
		public virtual void OnPackageDownloadRetried(PackageEventArgs ea)
		{
			var handler = PackageDownloadRetried;
			if (handler != null)
				handler(this, ea);
		}
Пример #7
0
		/// <summary>
		/// 引发 <see cref="PackageHashMismatch" /> 事件
		/// </summary>
		/// <param name="ea">包含此事件的参数</param>
		public virtual void OnPackageHashMismatch(PackageEventArgs ea)
		{
			var handler = PackageHashMismatch;
			if (handler != null)
				handler(this, ea);
		}
Пример #8
0
        protected override void OnPackageDownload(FSLib.App.SimpleUpdater.PackageEventArgs e)
        {
            base.OnPackageDownload(e);

            label1.Text = "正在下载 " + e.Package.PackageName + " ...";
        }