示例#1
0
        public void Refactor(IEnumerable <Mp3FileInfoModel> files)
        {
            _logController.Start(SongActionEnum.Refactor);

            files.ToList().ForEach(UpdateSong);

            _logController.End(SongActionEnum.Refactor);
        }
示例#2
0
        public IEnumerable <Mp3FileInfoModel> GetFilesInCurrentFolder()
        {
            _logController.Start(SongActionEnum.FilesInFolder);

            var files = Directory.GetFiles(Directory.GetCurrentDirectory(), $"*.{Settings.Default.FileFormat}")
                        .Select(x => new Mp3FileInfoModel(x))
                        .ToList();

            _logController.FoundFiles(files.Count);

            _logController.End(SongActionEnum.FilesInFolder);

            return(files);
        }