Пример #1
0
 public void HandleProcess(ProcessStoppedEventArgs eventArgs)
 {
     if (BoxInRepository(eventArgs))
     {
         boxRepository.Remove(eventArgs.ProcessId);
     }
 }
Пример #2
0
 private bool BoxInRepository(ProcessStoppedEventArgs eventArgs)
 {
     return(boxRepository.GetAll().Any(box => box.ProcessId == eventArgs.ProcessId));
 }