Пример #1
0
        private void RenameAndSortFiles(CopyWorkerSettings settings)
        {
            foreach (AppFile file in settings.FilesToCopy)
            {
                file.FileNameFull = _fileHelper.GenerateUniqueFileName(file, _charsGenerator, settings.CharsPositionOnCopy);
            }

            if (settings.SelectedSortOrder == SortOrder.Ascending)
            {
                settings.FilesToCopy = settings.FilesToCopy.OrderBy(x => x.FileNameFull).ToList();
            }
            else if (settings.SelectedSortOrder == SortOrder.Descending)
            {
                settings.FilesToCopy = settings.FilesToCopy.OrderByDescending(x => x.FileNameFull).ToList();
            }
        }
Пример #2
0
 public GlobalWizardViewModel(string titleSuffix)
 {
     _titleSuffix             = titleSuffix;
     RandomizerWorkerSettings = new RandomizerWorkerSettings();
     CopyWorkerSettings       = new CopyWorkerSettings();
 }