using Caliburn.Micro.Core; namespace MECF.Framework.UI.Client.ClientBase { public class BaseModel : Screen { #region Variables protected readonly IEventAggregator EventAggregator; private int _permission = 0; #endregion #region Constructors protected BaseModel() { EventAggregator = IoC.Get(); EventAggregator?.Subscribe(this); } #endregion #region Properties public int Permission { get => _permission; set { if (_permission != value) { _permission = value; NotifyOfPropertyChange(); } } } #endregion } }