From 1e1fcd984dceab4809dad51dd1178a09a88ab611 Mon Sep 17 00:00:00 2001 From: 0x10 Date: Wed, 30 Jan 2019 10:40:36 +0800 Subject: [PATCH] Update FormDiff.cs --- MifareOneTool/FormDiff.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/MifareOneTool/FormDiff.cs b/MifareOneTool/FormDiff.cs index d679382..99b43b6 100644 --- a/MifareOneTool/FormDiff.cs +++ b/MifareOneTool/FormDiff.cs @@ -104,6 +104,7 @@ namespace MifareOneTool private string Compare() { StringBuilder stb = new StringBuilder(); + int diffCount = 0; for (int i = 0; i < 16; i++) { stb.AppendLine("%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"); @@ -121,10 +122,14 @@ namespace MifareOneTool stb.AppendLine("A: " + Utils.Hex2StrS(sa.Sectors[i].Block[a])); stb.AppendLine("B: " + Utils.Hex2StrS(sb.Sectors[i].Block[a])); stb.AppendLine(" " + res); + if(res.Contains("##")) + { + diffCount++; + } } } - return stb.ToString(); + return "共找到 " + diffCount.ToString() + " 处不同\n" + stb.ToString(); } } }