protected void Lock(IAuthentication authentication, string comment) { this.lockInfo = new LockInfo() { Path = this.Path, ParentPath = string.Empty, SignatureDate = new SignatureDate(authentication.ID), Comment = comment }; this.UpdateLockParent(this); this.OnLockChanged(EventArgs.Empty); }
protected void Unlock(IAuthentication _) { this.lockInfo = LockInfo.Empty; this.UpdateLockParent(this.lockParent); this.OnLockChanged(EventArgs.Empty); }
public static bool IsOwnerOf(this IAuthentication authentication, LockInfo lockInfo) { return(authentication.ID == lockInfo.ID); }