diff --git a/Model/Helper/Common.cs b/Model/Helper/Common.cs
index c4a85be..d169d30 100644
--- a/Model/Helper/Common.cs
+++ b/Model/Helper/Common.cs
@@ -1,5 +1,7 @@
using System.Data;
using System.Reflection;
+using System.Security.Cryptography;
+using System.Text;
using Newtonsoft.Json;
namespace SparkClient.Model.Helper;
@@ -88,4 +90,14 @@ public class Common
return entityList;
}
+
+ private static string GenerateMd5Hash(string input)
+ {
+ using (var md5 = MD5.Create())
+ {
+ var inputBytes = Encoding.UTF8.GetBytes(input);
+ var hashBytes = md5.ComputeHash(inputBytes);
+ return string.Concat(hashBytes.Select(b => b.ToString("X2")));
+ }
+ }
}
\ No newline at end of file
diff --git a/ViewModel/Grading/DiamondSelectVM.cs b/ViewModel/Grading/DiamondSelectVM.cs
index 3a6d297..ccfb249 100644
--- a/ViewModel/Grading/DiamondSelectVM.cs
+++ b/ViewModel/Grading/DiamondSelectVM.cs
@@ -114,7 +114,9 @@ public class DiamondSelectVM : BaseViewModel
///
public async void StartGrading(object param)
{
-
+ #if DEBUG
+ DoStartGrading(param);
+ #else
LoadingDialog loading = new LoadingDialog();
try
{
@@ -236,7 +238,7 @@ public class DiamondSelectVM : BaseViewModel
finally {
}
-
+ #endif
}
// 将 UI 操作调度到主线程并显示错误信息
diff --git a/Views/Configuration/ConfigMenuPage.xaml b/Views/Configuration/ConfigMenuPage.xaml
index 87b29c5..269676c 100644
--- a/Views/Configuration/ConfigMenuPage.xaml
+++ b/Views/Configuration/ConfigMenuPage.xaml
@@ -78,10 +78,10 @@
@@ -181,10 +181,12 @@
-
+
-