Exemplo n.º 1
0
        public void SerializeDirectory(WzDirectory dir, string outPath)
        {
            total = dir.CountImages();
            curr  = 0;

            if (!Directory.Exists(outPath))
            {
                WzXmlSerializer.createDirSafe(ref outPath);
            }

            if (outPath.Substring(outPath.Length - 1, 1) != @"\")
            {
                outPath += @"\";
            }

            foreach (WzDirectory subdir in dir.WzDirectories)
            {
                SerializeDirectory(subdir, outPath + subdir.Name + @"\");
            }

            foreach (WzImage img in dir.WzImages)
            {
                SerializeImage(img, outPath + img.Name);
            }
        }
Exemplo n.º 2
0
 public void SerializeDirectory(WzDirectory dir, string path)
 {
     total = dir.CountImages(); curr = 0;
     exportDirXmlInternal(dir, path);
 }
 public void SerializeDirectory(WzDirectory dir, string outPath)
 {
     total = dir.CountImages();
     curr = 0;
     if (!Directory.Exists(outPath)) WzXmlSerializer.createDirSafe(ref outPath);
     if (outPath.Substring(outPath.Length -1, 1) != @"\") outPath += @"\";
     foreach (WzDirectory subdir in dir.WzDirectories) SerializeDirectory(subdir, outPath + subdir.Name + @"\");
     foreach (WzImage img in dir.WzImages) SerializeImage(img, outPath + img.Name);
 }
 public void SerializeDirectory(WzDirectory dir, string path)
 {
     total = dir.CountImages(); curr = 0;
     exportDirXmlInternal(dir, path);
 }