using System; namespace LiveUpdate { /// /// /// public struct UpdateInfo { /// /// 更新类型,soft或者data /// public string UpdateType;//更新类型 /// /// 更新描述Url /// public string UpdateDes_Url;//更新描述Url /// /// 更新描述 /// public string UpdateDes;//更新描述 /// /// 版本 /// public string UpdateVer;//版本 /// /// 更新日期 /// public string UpdateDate;//更新日期 /// /// 更新地址 /// public string UpdateUrl;//更新地址 /// /// 在下载升级包前首先要下载的内容 /// public string FirstDownList;//在下载升级包前首先要下载的内容 /// /// 升级程序要使用的设置xml /// public string sxSettingXML;//升级程序要使用的设置xml } /// /// /// public struct UpdateErrorInfo { /// /// 错误字符串 /// public string ErrorStr;//错误字符串 /// /// 错误id /// public int ErrorId;//错误id } /// /// /// public sealed class LiveUpdateEventArgs : EventArgs { private long _CurrentFileSize; private string _CurrentFileName; private string _CurrentUrl; private double _CurrProgress; private bool _IsCompleted; private string _CurrentStatus; /// /// /// public LiveUpdateEventArgs() { _CurrentFileSize = 0; _CurrentUrl = ""; _IsCompleted = false; } /// /// /// public long CurrentFileSize { get { return _CurrentFileSize; } set { _CurrentFileSize = value; } } /// /// /// public string CurrentFileName { get { return _CurrentFileName; } set { _CurrentFileName = value; } } /// /// /// public string CurrentUrl { get { return _CurrentUrl; } set { _CurrentUrl = value; } } /// /// /// public double CurrProgress { get { return _CurrProgress; } set { _CurrProgress = value; } } /// /// /// public bool IsCompleted { get { return _IsCompleted; } set { _IsCompleted = value; } } /// /// /// public string CurrentStatus { get { return _CurrentStatus; } set { _CurrentStatus = value; } } } }