| 63 | } |
| 64 | |
| 65 | winrt::hstring RobocopyViewModel::OperationString() |
| 66 | { |
| 67 | if (!m_recordFile) |
| 68 | return L" "; |
| 69 | |
| 70 | switch (m_recordFile->GetOperation()) |
| 71 | { |
| 72 | case CopyOperation::Copy: return ToCapital(GetStringResource(L"CopyOperation")); |
| 73 | case CopyOperation::Move: return ToCapital(GetStringResource(L"MoveOperation")); |
| 74 | case CopyOperation::Delete: return ToCapital(GetStringResource(L"DeleteOperation")); |
| 75 | default: throw std::runtime_error{ "Invalid operation" }; |
| 76 | } |
| 77 | } |
| 78 | int RobocopyViewModel::ItemCount() |
| 79 | { |
| 80 | return m_recordFile.has_value() && m_countItemTask.is_done() ? m_recordFile->GetNumFiles() : 0; |
nothing calls this directly
no test coverage detected