You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.6 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AutoUpdater
{
public class Global
{
private static object _lock = new object();
private static Global _instance = null;
private Global(){}
public static Global Instance
{
get
{
if (_instance == null)
{
lock (_lock)
{
_instance = new Global();
}
}
return _instance;
}
}
/// <summary>
/// 网络是否可用
/// </summary>
public bool isConnected { get; set; }
/// <summary>
/// 是否有新版本
/// </summary>
public bool isUpdate { get; set; }
/// <summary>
/// 当前版本号
/// </summary>
public string CurrentVersion { get; set; }
/// <summary>
/// 最新版本号
/// </summary>
public string NewVersion { get; set; }
/// <summary>
/// 更新文件下载URL
/// </summary>
public DownloadURLCollection Urls { get; set; }
/// <summary>
/// 默认下载路径
/// </summary>
public string DownloadPath { get; set; }
/// <summary>
/// 默认下载全路径,包含文件名
/// </summary>
public string DownloadFileName { get; set; }
/// <summary>
/// 升级后启动的主程序名称
/// </summary>
public string StartApplication { get; set; }
}
}