private void Application_Startup(object sender, StartupEventArgs e) { var resolverArgs = CefSharpUtil.AddAssemblyResolverForCefSharp(); var cefSettings = WPF.EntClient.BuildDefaultCefSettings(); cefSettings.IgnoreCertificateErrors = true; WPF.EntClient.Initialize(cefSettings, resolverArgs); }
static void Main() { var resolverArgs = CefSharpUtil.AddAssemblyResolverForCefSharp(); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var appContext = new WinFormsSampleApplicationContext(resolverArgs); Application.Run(appContext); }