void Run(bool forceMontage) { var work = Subdirectories .Where(z => z.Selected) .SelectMany(z => TutoProgram.MakeAll(z.FullPath, forceMontage)) .ToArray(); var window = new BatchWorkWindow(); window.Run(work); }
public void RepairFaceSelected() { var work = Subdirectories .Where(z => z.Selected) .Select(z => new BatchWork { Name = "Repairing face in"+z.Name, Work=() => TutoProgram.Repair(new DirectoryInfo(z.FullPath), true) }) .ToArray(); var window = new BatchWorkWindow(); window.Run(work); }