Пример #1
0
        public AiFolder(XmlNode folderNode, ref List <BaseFolder> allFolders, BaseFolder parentFolder)
        {
            mFolders = allFolders;

            // Create this
            Id     = RowValue(ref folderNode, "Directory");
            Parent = RowValue(ref folderNode, "Directory_Parent");
            Path   = string.Format("{0}", GetFolderNamePart(RowValue(ref folderNode, "DefaultDir")));
            IsRoot = RowValue(ref folderNode, "IsPseudoRoot") == "1" ? true : false;
            if (IsRoot)
            {
                Path = string.Format("[{0}]", Path);
            }

            if (Path == "SourceDir")
            {
                Id = null; // Null Id -> do not add this folder
            }
        }