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; } } /// /// 网络是否可用 /// public bool isConnected { get; set; } /// /// 是否有新版本 /// public bool isUpdate { get; set; } /// /// 当前版本号 /// public string CurrentVersion { get; set; } /// /// 最新版本号 /// public string NewVersion { get; set; } /// /// 更新文件下载URL /// public DownloadURLCollection Urls { get; set; } /// /// 默认下载路径 /// public string DownloadPath { get; set; } /// /// 默认下载全路径,包含文件名 /// public string DownloadFileName { get; set; } /// /// 升级后启动的主程序名称 /// public string StartApplication { get; set; } } }