Exemplo n.º 1
0
 public List <string> GetUniquePaths(PhotoPathType pathType)
 {
     return(RelativePaths?
            .Where(p => p.PathType == pathType)
            .Select(p => p.RelativePath)
            .Distinct()
            .ToList());
 }
Exemplo n.º 2
0
        public static Photo Create(string filePath, PhotoPathType pathType = PhotoPathType.Source)
        {
            if (pathType != PhotoPathType.Source)
            {
                throw new NotImplementedException("Currently only supports PhotoPathType.Source.");
            }

            return(new Photo(filePath));
        }
Exemplo n.º 3
0
 public Photo(string filePath, PhotoPathType pathType = PhotoPathType.Source)
 {
     SourceFileName  = Path.GetFileName(filePath);
     SourceDirectory = Path.GetDirectoryName(filePath);
 }
 public PhotoPath(PhotoPathType type, string path)
 {
     Type = type;
     Path = path;
 }