protected override void OnUpdateLockParent(ILockParent lockParent) { base.OnUpdateLockParent(lockParent); foreach (var item in this.Childs) { item.LockParent = lockParent; if (item.LockInfo.UserID == string.Empty) { } } }
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); } } }
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); } } }
internal void UpdateLockParent(ILockParent lockParent) { this.OnUpdateLockParent(lockParent); }
protected virtual void OnUpdateLockParent(ILockParent lockParent) { }