66 lines
1.5 KiB
C#
66 lines
1.5 KiB
C#
using System;
|
|
|
|
namespace LiveUpdate
|
|
{
|
|
public struct UpdateInfo
|
|
{
|
|
public string UpdateType;//更新类型
|
|
public string UpdateDes_Url;//更新描述Url
|
|
public string UpdateDes;//更新描述
|
|
public string UpdateVer;//版本
|
|
public string UpdateDate;//更新日期
|
|
public string UpdateUrl;//更新地址
|
|
public string sxSettingXML;//升级程序要使用的设置xml
|
|
}
|
|
public struct UpdateErrorInfo
|
|
{
|
|
public string ErrorStr;//错误字符串
|
|
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; }
|
|
}
|
|
}
|
|
}
|