コード例 #1
0
 private bool RunSaveProcess(IProgress <string> progress)
 {
     using (var ccw = new CarControllerWriter(_projectService.GetCurrentProject().OutputFilePath))
     {
         ccw.DoWrite(progress);
         return(true);
     }
 }
コード例 #2
0
 private Func <IProgress <string>, bool> RunSaveProcess(bool compress)
 {
     return((prog) =>
     {
         using (var ccw = new CarControllerWriter(_projectService.GetCurrentProject().OutputFilePath, compress))
         {
             ccw.DoWrite(prog);
             return true;
         }
     });
 }