Exemple #1
0
        public bool Call(Mp3Tags tags, Tager tager)
        {
            _isCanceled = false;
            _file       = tager.CurrentFile;

            try
            {
                _memento = _file.GetMemento();
                tager.ChangeTags(tags);

                return(true);
            }
            catch
            {
                return(false);
            }
        }
Exemple #2
0
        public bool Call(Mp3Tags tags, Tager tager)
        {
            _isCanceled = false;
            _file = tager.CurrentFile;

            try
            {
                _memento = _file.GetMemento();
                tager.ChangeTags(tags);

                return true;
            }
            catch
            {
                return false;
            }
        }
Exemple #3
0
        public override bool Call(Mask mask, Tager tager, IMp3File file)
        {
            if (_isCanceled)
            {
                RestoreFile();
                return(true);
            }

            _file = file;

            try
            {
                _memento = _file.GetMemento();
                tager.ChangeTags(tager.GetTagsFromName(mask));

                return(true);
            }
            catch
            {
                return(false);
            }
        }
Exemple #4
0
        public override bool Call(Mask mask, Tager tager, IMp3File file)
        {
            if (_isCanceled)
            {
                RestoreFile();
                return true;
            }

            _file = file;

            try
            {
                _memento = _file.GetMemento();
                tager.ChangeTags(tager.GetTagsFromName(mask));

                return true;
            }
            catch
            {
                return false;
            }
        }
Exemple #5
0
 public void TagerWithoutFileCantSave()
 {
     Assert.IsNull(_testTager.CurrentFile);
     _testTager.Save();
     _testTager.ChangeTags(new Mp3Tags());
 }