public DirectoryObject(AccessRule accessRule, string path, int filesCount)
        {
            Path       = path;
            FilesCount = filesCount;
            AccessRule = accessRule;

            Id = DirectoryHelper.GenerateID();
        }
 public DirectoryObject(int id, string accessFileName, string comment, AccessRule accessRule, string path, int filesCount)
 {
     Id             = id;
     AccessFileName = accessFileName;
     Path           = path;
     Comment        = comment;
     FilesCount     = filesCount;
     AccessRule     = accessRule;
 }