| 1454 | } |
| 1455 | |
| 1456 | bool CMergeApp::LoadProjectFile(const String& sProject, ProjectFile &project) |
| 1457 | { |
| 1458 | if (sProject.empty()) |
| 1459 | return false; |
| 1460 | |
| 1461 | try |
| 1462 | { |
| 1463 | project.Read(sProject); |
| 1464 | } |
| 1465 | catch (Poco::Exception& e) |
| 1466 | { |
| 1467 | String sErr = _("Unknown error opening project file."); |
| 1468 | sErr += ucr::toTString(e.displayText()); |
| 1469 | String msg = strutils::format_string2(_("Cannot open file\n%1\n\n%2"), sProject, sErr); |
| 1470 | AfxMessageBox(msg.c_str(), MB_ICONSTOP); |
| 1471 | return false; |
| 1472 | } |
| 1473 | |
| 1474 | return true; |
| 1475 | } |
| 1476 | |
| 1477 | bool CMergeApp::SaveProjectFile(const String& sProject, const ProjectFile &project) |
| 1478 | { |
nothing calls this directly
no test coverage detected