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