Пример #1
0
        public void SetLock(BaseAspect aspect, bool locked)
        {
            if (aspect == null)
            {
                return;
            }

            if (locked)
            {
                aspect.BeginAction(this);
                OnLocked(aspect);
            }
            else
            {
                aspect.EndAction(this);
                OnUnlocked(aspect);
            }
        }