Exemple #1
0
        private void HandleSortEvent(object sender, StageFileCommand e)
        {
            var stagingResults = e.Stage(new YearSortStrategy());

            string.Format("Staged File: {0}  To Location {1}", e.FileToSort.FullName, e.StagedFilePath).Log(ConsoleColor.Yellow);

            if (!_showOnly)
            {
                var newFile = stagingResults.Move(_deleteSourceFile);
                String.Concat("New File Name:", newFile).Log();
                if (stagingResults.Moved)
                {
                    string.Format("Moved File: {0} To Location {1}", e.FileToSort.Name, e.StagedFilePath).Log();
                }
            }
        }
Exemple #2
0
 private void HandleSortEvent(object sender, StageFileCommand e)
 {
     e.Stage(new YearSortStrategy()).Move(false);
 }