Esempio n. 1
0
 public TempFile(TempFileSystem fileSystem, TempFolder parent, string name, string src, TempFeature feat)
 {
     this.FileSystem = fileSystem;
     Name            = name;
     this.Source     = src;
     this.Path       = parent?.Path + "\\";
     this.Move(parent);
     this.Features.Add(feat.Title, feat);
     feat.RegisterFile(this);
 }
Esempio n. 2
0
 public void Update(string src, TempFeature fsFeat)
 {
     if (this.Source != src)
     {
         throw new Exception("Can't add same file from multiple sources: " + this.Source + " | " + src);
     }
     if (this.Features.ContainsKey(fsFeat.Title))
     {
         return;
     }
     this.Features.Add(fsFeat.Title, fsFeat);
     fsFeat.RegisterFile(this);
 }