This commit is contained in:
XAS-712 2019-01-30 17:47:18 +08:00
parent 2da4a3367b
commit 92ec712126
2 changed files with 17 additions and 24 deletions

View File

@ -1,11 +0,0 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace MifareOneTool
{
class ClassMfClassic
{
}
}

View File

@ -94,7 +94,7 @@ namespace MifareOneTool
if (File.Exists(fa) && File.Exists(fb))
{
richTextBox1.Clear();
richTextBox1.Text=Compare();
richTextBox1.Text = Compare();
}
else
{
@ -111,18 +111,22 @@ namespace MifareOneTool
stb.AppendLine("扇区 " + i.ToString());
for (int a = 0; a < 4; a++)
{
string res="";
for(int b=0;b<16;b++){
if(sa.Sectors[i].Block[a][b]==sb.Sectors[i].Block[a][b]){
res+="-- ";
}else{
res+="## ";
string res = "";
for (int b = 0; b < 16; b++)
{
if (sa.Sectors[i].Block[a][b] == sb.Sectors[i].Block[a][b])
{
res += "-- ";
}
else
{
res += "## ";
}
}
stb.AppendLine("A: " + Utils.Hex2StrWithSpan(sa.Sectors[i].Block[a]));
stb.AppendLine("B: " + Utils.Hex2StrWithSpan(sb.Sectors[i].Block[a]));
stb.AppendLine(" " + res);
if(res.Contains("##"))
if (res.Contains("##"))
{
diffCount++;
}