protected override void OnCreateMainForm() { var settings = new CefSettings(); settings.LogSeverity = LogSeverity.Disable; settings.RegisterScheme(new CefCustomScheme { SchemeName = CefSharpSchemeHandlerFactory.SchemeName, SchemeHandlerFactory = new CefSharpSchemeHandlerFactory() }); if (!Cef.Initialize(settings)) { throw new Exception("Unable to Initialize Cef"); } MainForm = new FormMain(); }
protected override void OnCreateMainForm() { MainForm = new FormMain(); }