Ejemplo n.º 1
0
 public Monitor()
 {
     InitializeComponent();
     startWatcher = eventWatch.WatchForProcessStart("notepad.exe");
     startWatcher.ProcessStarted += startWatcher_ProcessStarted;     // subscribe to the event
     endWatcher = eventWatch.WatchForProcessEnd("notepad.exe");
 }