Exemplo n.º 1
0
 private void browserSuspend()
 {
     foreach (var p in Process.GetProcessesByName("CefSharp.BrowserSubprocess").Where(en => en.MainModule.FileName.StartsWith(Application.StartupPath)))
     {
         ProcessMgr.SuspendProcess(p.Id);
     }
     this.hanging = true;
 }
Exemplo n.º 2
0
 private void browserResume()
 {
     if (hanging)
     {
         foreach (var p in Process.GetProcessesByName("CefSharp.BrowserSubprocess").Where(en => en.MainModule.FileName.StartsWith(Application.StartupPath)))
         {
             ProcessMgr.ResumeProcess(p.Id);
         }
     }
     this.hanging = false;
 }