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; }
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; }