Ejemplo n.º 1
0
 public RelativeFfolder(IFfolder folder, string name)
 {
     if (folder.Relative == null && folder.Absolute == null)
     {
         throw new ArgumentException("absolute and relative are null");
     }
     Name = name;
     if (folder.Relative == null && folder.Absolute != null)
     {
         Absolute = folder.Absolute;
         return;
     }
     if (folder.Relative != null && folder.Absolute == null)
     {
         Parent   = folder.Relative;
         Absolute = GetAbsolute(Parent);
         return;
     }
     if (folder.Relative != null && folder.Absolute != null)
     {
         Parent   = folder.Relative;
         Absolute = folder.Absolute;
         return;
     }
 }
Ejemplo n.º 2
0
 public Ffile(IFfolder folder, string name)
 {
     Folder = folder;
     Name   = name;
 }