Exemplo n.º 1
0
 public void OnValidSuspeciousFilePathCreated(object sender, string filePath)
 {
     _suspeciousFilePath = filePath;
     _suspeciousItems    = ParseSuspeciousItems();
     if (_suspeciousItems != null)
     {
         SuspeciousFilePathUpdate?.Invoke(this, _suspeciousFilePath);
         SuspeciousItemsUpdate?.Invoke(this, _suspeciousItems);
     }
 }
Exemplo n.º 2
0
 public void OnScanButtonWasClicked(object sender, EventArgs e)
 {
     Parallel.ForEach(_suspeciousItems.ToList(), item => _virusTotalWebAPI.PopulateSuspeciousItem(item));
     SuspeciousItemsUpdate?.Invoke(this, _suspeciousItems);
 }