Example #1
0
        } // Execute

        public List <string> ProcessPlaylistUpdates(PlaylistUpdates.PlayListUpdatesModel playlistUpdatesModel)
        {
            List <string> listRet = new List <string>();

            foreach (PlaylistUpdates.PlayListUpdatesViewModel vm in playlistUpdatesModel.Items)
            {
                if (vm.UpdatePlaylist)
                {
                    if (vm.LeaveCopy)
                    {
                        AddTask(ref listRet, Tasks.enTasks.Rename, vm.PathOriginal, vm.PathRenameOrg);
                    }
                    else // no oldversion copy - Delete
                    {
                        AddTask(ref listRet, Tasks.enTasks.Delete, vm.PathOriginal, vm.PathOriginal);
                    }

                    AddTask(ref listRet, Tasks.enTasks.Copy, vm.PathTemp, vm.PathOriginal);
                }
            }


            return(listRet);
        }
Example #2
0
        public TaskExecute(Tasks.FileLists fileLists, UserInterface.UserInterfaceBase userInterface, PlaylistUpdates.PlayListUpdatesModel playlistUpdatesModel)
        {
            this.fileLists = fileLists;

            this.playlistUpdatesModel = playlistUpdatesModel;

            this.userInterface = userInterface;
        }