Ejemplo n.º 1
0
 private void RunningProcessDetection_ProcessEvent(object sender, RunningProcessDetection.ProcessEventArgs e)
 {
     if (isWindowFocusEvent(e))
     {
         currentWindowFocus = e.ProcessEvent;
     }
 }
Ejemplo n.º 2
0
 private bool isProcessEvent(RunningProcessDetection.ProcessEventArgs args, RunningProcessDetection.ProcessEvents processEvent)
 {
     return(args.ProcessEvent.Equals(processEvent));
 }
Ejemplo n.º 3
0
 private bool isWindowFocusEvent(RunningProcessDetection.ProcessEventArgs e)
 {
     return(isProcessEvent(e, RunningProcessDetection.ProcessEvents.CMD_WINDOW_FOCUS) || isProcessEvent(e, RunningProcessDetection.ProcessEvents.RUN_WINDOW_FOCUS) || isProcessEvent(e, RunningProcessDetection.ProcessEvents.OTHER_FOCUS));
 }