Inheritance: SyncOperation
Beispiel #1
0
        public override void Call()
        {
            if (IsCanceled)
            {
                rename.Redo();
                return;
            }

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

            // _tager.Load(@"C:\Users\Alexandr\Desktop\TEST\песня.mp3");
            if (!tager.Load(Menu.GetUserInput("path:")))
            {
                throw new FileNotFoundException("File does not exist");
            }



            Menu.PrintHelp();



            rename = new Rename();
            rename.Call(new Mask(Menu.GetUserInput("mask:")), tager, tager.CurrentFile);
            rename.Save();



            Menu.PrintSuccessMessage();
        }
Beispiel #2
0
        public override void Call()
        {
            if (IsCanceled)
            {
                rename.Redo();
                return;
            }

            var tager = new Tager(new FileLoader());
                                                           // _tager.Load(@"C:\Users\Alexandr\Desktop\TEST\песня.mp3");
            if (!tager.Load(Menu.GetUserInput("path:")))
            {
                throw new FileNotFoundException("File does not exist");
            }

            Menu.PrintHelp();

            rename = new Rename();
            rename.Call(new Mask(Menu.GetUserInput("mask:")), tager,tager.CurrentFile);
            rename.Save();

            Menu.PrintSuccessMessage();
        }