Beispiel #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);
            }
        }
Beispiel #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;
            }
        }
Beispiel #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);
            }
        }
Beispiel #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;
            }
        }
Beispiel #5
0
 public void TagerWithoutFileCantSave()
 {
     Assert.IsNull(_testTager.CurrentFile);
     _testTager.Save();
     _testTager.ChangeTags(new Mp3Tags());
 }