private void CheckFilesForChanges(FileModel originalFile, FileModel newFile) { if (CryptographyProvider.HashesAreEqual(originalFile.Hash, newFile.Hash)) { newFile.FileType = FileType.UNMNODIFIED; } else { originalFile.Version++; originalFile.FileType = FileType.MODIFIED; newFile.FileType = FileType.MODIFIED; } }