public IEnumerable <FileSystemItemPropertyData> GetLockProperties(string lockIconPath) { List <FileSystemItemPropertyData> lockProps = new List <FileSystemItemPropertyData>(); lockProps.Add(new FileSystemItemPropertyData(2, Owner, lockIconPath)); lockProps.Add(new FileSystemItemPropertyData(3, Exclusive ? "Exclusive" : "Shared")); lockProps.Add(new FileSystemItemPropertyData(4, LockExpirationDateUtc.ToString())); return(lockProps); }
/// <summary> /// Gets this lock info as a set of properties that can be visually displayed in the file manager. /// </summary> /// <param name="lockIconPath">Lock icon path that will be displayed in file manager.</param> /// <returns>List of properties that represent this lock info.</returns> public IEnumerable <FileSystemItemPropertyData> GetLockProperties(string lockIconPath) { List <FileSystemItemPropertyData> lockProps = new List <FileSystemItemPropertyData>(); lockProps.Add(new FileSystemItemPropertyData((int)CustomColumnIds.LockOwnerIcon, Owner, lockIconPath)); lockProps.Add(new FileSystemItemPropertyData((int)CustomColumnIds.LockScope, Exclusive ? "Exclusive" : "Shared")); lockProps.Add(new FileSystemItemPropertyData((int)CustomColumnIds.LockExpirationDate, LockExpirationDateUtc != null ? LockExpirationDateUtc.ToString() : "")); return(lockProps); }