HashChkWindow.xaml.cs 726 B

123456789101112131415161718192021222324252627
  1. using Agent.Models;
  2. using System.Collections.ObjectModel;
  3. using System.Windows;
  4. namespace Agent.Views
  5. {
  6. /// <summary>
  7. /// HashChkWindow.xaml에 대한 상호 작용 논리
  8. /// </summary>
  9. public partial class HashChkWindow : Window
  10. {
  11. private readonly ObservableCollection<MatchResult> _resultList = new ObservableCollection<MatchResult>();
  12. public HashChkWindow(string path, string hash, bool isMatch)
  13. {
  14. InitializeComponent();
  15. MatchList.ItemsSource = _resultList;
  16. _resultList.Add(new MatchResult
  17. {
  18. FilePath = $"{path}\r\n(HASH:{hash})",
  19. IsMatch = isMatch
  20. });
  21. }
  22. }
  23. }