private bool RunSaveProcess(IProgress <string> progress) { using (var ccw = new CarControllerWriter(_projectService.GetCurrentProject().OutputFilePath)) { ccw.DoWrite(progress); return(true); } }
private Func <IProgress <string>, bool> RunSaveProcess(bool compress) { return((prog) => { using (var ccw = new CarControllerWriter(_projectService.GetCurrentProject().OutputFilePath, compress)) { ccw.DoWrite(prog); return true; } }); }