using System.ComponentModel; namespace Update.Net.Events { /// /// 解压工作委托 /// /// 参数 public delegate void DecompressDataStartDelegate(DecompressDataStartArgs e); /// /// 解压工作参数 /// public class DecompressDataStartArgs { /// /// 异步操作生存期 /// public AsyncOperation Operation { get; private set; } /// /// 要解压的数据 /// public byte[] Data { get; private set; } /// /// 删除列表文件 /// public string DeleteEntry { get; private set; } /// /// 最后一个解压的文件 /// public string LastEntry { get; private set; } /// /// 要解压到的目录 /// public string DestinationDirectory { get; private set; } /// /// 构造函数 /// /// 异步操作生存期 /// 要解压的数据 /// 删除列表文件 /// 最后一个解压的文件 /// 要解压到的目录 public DecompressDataStartArgs(AsyncOperation asyncOp, byte[] data, string deleteEntry, string lastEntry, string destinationDirectory) { this.Operation = asyncOp; this.Data = data; this.DeleteEntry = deleteEntry; this.LastEntry = lastEntry; this.DestinationDirectory = destinationDirectory; } } }