Skip to content

Commit 2d8a776

Browse files
authored
Add files via upload
1 parent 6e8dd8d commit 2d8a776

1 file changed

Lines changed: 25 additions & 18 deletions

File tree

PKeyTools_Desktop/MainWindow.xaml.cs

Lines changed: 25 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,14 @@ private void KeySelectBox_PreviewMouseUp(object sender, MouseButtonEventArgs e)
515515
MessageBoxResult result = MessageBox.Show("该密钥 " + abc[i].Value + " 已经在您的数据库里了,是否重新检测?", "提示", MessageBoxButton.YesNo);
516516
if (result != MessageBoxResult.Yes)
517517
{
518+
if (abc.Count>1)
519+
{
520+
Application.Current.Dispatcher.Invoke(() =>
521+
{
522+
RawResult.Text += "密钥 " + abc[i].Value + " 已跳过检测 \n\n";
523+
});
524+
}
525+
518526
continue;
519527
}
520528
}
@@ -619,15 +627,6 @@ private void KeySelectBox_PreviewMouseUp(object sender, MouseButtonEventArgs e)
619627

620628
}
621629

622-
//检测完成后需要切换单个密钥和多个密钥的UI状态
623-
Application.Current.Dispatcher.Invoke(() =>
624-
{
625-
TestPanel.Visibility=(Visibility)2;
626-
Panel1.Visibility=(Visibility)2;
627-
Panel2.Visibility=0;
628-
629-
ResetCheckUI();
630-
});
631630
}
632631
else
633632
{
@@ -669,15 +668,6 @@ private void KeySelectBox_PreviewMouseUp(object sender, MouseButtonEventArgs e)
669668

670669
}
671670

672-
//检测完成后需要切换单个密钥和多个密钥的UI状态
673-
Application.Current.Dispatcher.Invoke(() =>
674-
{
675-
TestPanel.Visibility=(Visibility)2;
676-
Panel1.Visibility=0;
677-
Panel2.Visibility=(Visibility)2;
678-
679-
ResetCheckUI();
680-
});
681671
}
682672

683673
}
@@ -687,6 +677,23 @@ private void KeySelectBox_PreviewMouseUp(object sender, MouseButtonEventArgs e)
687677
Application.Current.Dispatcher.Invoke(() =>
688678
{
689679
RawResult.Text += "\n All done. 以上是所有检测数据。";
680+
681+
TestPanel.Visibility=(Visibility)2;
682+
Panel1.Visibility=(Visibility)2;
683+
Panel2.Visibility=0;
684+
685+
ResetCheckUI();
686+
});
687+
}
688+
else
689+
{
690+
Application.Current.Dispatcher.Invoke(() =>
691+
{
692+
TestPanel.Visibility=(Visibility)2;
693+
Panel1.Visibility=0;
694+
Panel2.Visibility=(Visibility)2;
695+
696+
ResetCheckUI();
690697
});
691698
}
692699

0 commit comments

Comments
 (0)