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.

56 lines
1.1 KiB
C#

2 years ago
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;
}
}
}
}
}