From 92ec71212697a72471acb418a0e63783f08bada5 Mon Sep 17 00:00:00 2001 From: XAS-712 Date: Wed, 30 Jan 2019 17:47:18 +0800 Subject: [PATCH] emmmmm --- MifareOneTool/ClassMfClassic.cs | 11 ----------- MifareOneTool/FormDiff.cs | 30 +++++++++++++++++------------- 2 files changed, 17 insertions(+), 24 deletions(-) delete mode 100644 MifareOneTool/ClassMfClassic.cs diff --git a/MifareOneTool/ClassMfClassic.cs b/MifareOneTool/ClassMfClassic.cs deleted file mode 100644 index ed3eef5..0000000 --- a/MifareOneTool/ClassMfClassic.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; - -namespace MifareOneTool -{ - class ClassMfClassic - { - } -} diff --git a/MifareOneTool/FormDiff.cs b/MifareOneTool/FormDiff.cs index 5746247..16d3088 100644 --- a/MifareOneTool/FormDiff.cs +++ b/MifareOneTool/FormDiff.cs @@ -94,7 +94,7 @@ namespace MifareOneTool if (File.Exists(fa) && File.Exists(fb)) { richTextBox1.Clear(); - richTextBox1.Text=Compare(); + richTextBox1.Text = Compare(); } else { @@ -111,21 +111,25 @@ 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("##")) - { - diffCount++; - } + stb.AppendLine("B: " + Utils.Hex2StrWithSpan(sb.Sectors[i].Block[a])); + stb.AppendLine(" " + res); + if (res.Contains("##")) + { + diffCount++; + } } }