Mp3TagLib.Tager.Load C# (CSharp) Method

Load() public method

public Load ( string path ) : bool
path string
return bool
        public bool Load(string path)
        {
            _currentFile = _fileLoader.Load(path);
            return _currentFile != null;
        }

Usage Example

コード例 #1
0
ファイル: Changetags.cs プロジェクト: Confirmit/Students
        public override void Call()
        {
            if (IsCanceled)
            {
                retag.Redo();
                return;
            }

            var tager = new Tager(new FileLoader());

            if (!tager.Load(Menu.GetUserInput("path:")))
            {
                throw new FileNotFoundException("File does not exist");
            }

            Menu.PrintHelp();
            Menu.PrintCurrentFile(tager.CurrentFile);

            var tags = GetTagsFromFileName(tager.CurrentFile);

            retag = new Retag();
            retag.Call(tags, tager);
            retag.Save();

            Menu.PrintSuccessMessage();
        }
All Usage Examples Of Mp3TagLib.Tager::Load