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(); } } }
private void HandleSortEvent(object sender, StageFileCommand e) { e.Stage(new YearSortStrategy()).Move(false); }