Files
webdoorcreator/WebDoorCreator.UI/Data/WDCRefreshService.cs
T

47 lines
1.0 KiB
C#

namespace WebDoorCreator.UI.Data
{
public class WDCRefreshService
{
#region Public Events
public event Action EA_UpdDoorOp = null!;
#endregion Public Events
#region Public Properties
//public Dictionary<string, string> UserPref { get; set; } = new Dictionary<string, string>();
public bool isDoorOpUpd
{
get => _isDoorOpUpd;
set
{
if (_isDoorOpUpd != value)
{
_isDoorOpUpd = value;
reportDoorOpUpd();
}
}
}
#endregion Public Properties
#region Protected Methods
protected void reportDoorOpUpd()
{
if (EA_UpdDoorOp != null)
{
EA_UpdDoorOp?.Invoke();
}
}
#endregion Protected Methods
#region Private Properties
private bool _isDoorOpUpd { get; set; } = false;
#endregion Private Properties
}
}