Пример #1
0
        private string CreatePlayListFromAllDisks()
        {
            if (!Directory.Exists(FileSystemWalker.TempPlayListDirectory))
            {
                FileSystemWalker.createTempPlayListDirectory();
            }

            WVXManager playlist = new WVXManager();

            string playlistFile = Path.Combine(FileSystemWalker.TempPlayListDirectory, "AllDisks_" + this.TitleObject.Id + ".WVX");

            foreach (Disk disk in this.TitleObject.Disks)
            {
                if (string.IsNullOrEmpty(disk.Path))
                {
                    continue;
                }

                playlist.AddItem(new PlayListItem(disk.Path, disk.Name));
            }

            playlist.WriteWVXFile(playlistFile);

            return(playlistFile);
        }
Пример #2
0
        public Processor()
        {
            LoggerSingleton.GetLogger().Log("Started initializing...", LogNoteType.Info, "Processor");

            _fileSystemWalker  = new FileSystemWalker();
            _backCompatibility = new BackCompatibilityUtility();

            LoggerSingleton.GetLogger().Log("Initialized.", LogNoteType.Success, "Processor");
        }
Пример #3
0
 public static void ClassInitialize(TestContext testContext)
 {
     fileSystemWalker = new FileSystemWalker(consolePrinter, configInterpreter, new FileSystemPathTranslator());
 }