using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Khd.Core.Wpf { public class SystemData { public static string _message { get; set; } public static object _lock = new object(); public static string message { get { lock (_lock) { return _message; } } set { lock (_lock) { _message = value; } } } public static bool _isUpdate { get; set; } public static object _updateLock = new object(); public static bool isUpdate { get { lock (_updateLock) { return _isUpdate; } } set { lock (_updateLock) { _isUpdate = value; } } } } }