Exemplo n.º 1
0
        public DirectorySetup(Uri path, DirectorySetupName name, Description description, DirectorySetupId id, DateTime created, DateTime?lastChange = null)
        {
            this.Path         = path;
            this.Name         = name;
            this.Description  = description;
            this.ThumbnailUri = new Uri(@"\Thumbnails", UriKind.Relative);

            this.Id         = id;
            this.Identity   = Guid.NewGuid();
            this.LastChange = lastChange ?? DateTime.Now;
            this.Created    = created;
        }
Exemplo n.º 2
0
 public DirectorySetup(Uri path, DirectorySetupName name, Description description)
     : this(path, name, description, (DirectorySetupId)Guid.NewGuid(), DateTime.Now)
 {
 }
Exemplo n.º 3
0
 public DirectorySetup(DirectorySetup origin, Uri path, DirectorySetupName name, Description description)
     : this(path, name, description, origin.Id, origin.Created)
 {
 }
Exemplo n.º 4
0
 public SourceDirectory(SourceDirectoryId id, DirectoryPath filePath, DirectoryPath thumbnailSubDir, DirectorySetupName name)
 {
     Directory     = filePath ?? throw new ArgumentNullException(nameof(filePath));
     ThumbnailPath = thumbnailSubDir;//todo ?? throw new ArgumentNullException(nameof(thumbnailSubDir));
     Name          = name ?? throw new ArgumentNullException(nameof(name));
     Id            = id ?? throw new ArgumentNullException(nameof(id));
 }