示例#1
0
        protected override void OnUpdateLockParent(ILockParent lockParent)
        {
            base.OnUpdateLockParent(lockParent);

            foreach (var item in this.Childs)
            {
                item.LockParent = lockParent;
                if (item.LockInfo.UserID == string.Empty)
                {
                }
            }
        }
示例#2
0
        public void UpdateLockParent(ILockParent lockParent)
        {
            foreach (var item in this.Categories)
            {
                item.LockParent = lockParent;
                if (item.lockInfo.UserID == string.Empty)
                {
                    item.UpdateLockParent(lockParent);
                }
            }

            foreach (var item in this.Items)
            {
                item.LockParent = lockParent;
                if (item.lockInfo.UserID == string.Empty)
                {
                    item.UpdateLockParent(lockParent);
                }
            }
        }
示例#3
0
        protected void UpdateLockParent(ILockParent lockParent)
        {
            if (this.TypeCategory != null)
            {
                this.TypeCategory.LockParent = lockParent;
                if (this.TypeCategory.lockInfo.UserID == string.Empty)
                {
                    this.TypeCategory?.UpdateLockParent(lockParent);
                }
            }

            if (this.TableCategory != null)
            {
                this.TableCategory.LockParent = lockParent;
                if (this.TableCategory.lockInfo.UserID == string.Empty)
                {
                    this.TableCategory.UpdateLockParent(lockParent);
                }
            }
        }
示例#4
0
 internal void UpdateLockParent(ILockParent lockParent)
 {
     this.OnUpdateLockParent(lockParent);
 }
示例#5
0
 protected virtual void OnUpdateLockParent(ILockParent lockParent)
 {
 }