WinForms - OnIsBrowserInitializedChanged custom event args removed

https://github.com/cefsharp/CefSharp/pull/2710
This commit is contained in:
amaitland 2019-07-27 22:24:56 +10:00 committed by Alex Maitland
parent 603088e28d
commit 23a1aa66b8

View File

@ -2,10 +2,10 @@
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
using System.Windows.Forms;
using CefSharp.MinimalExample.WinForms.Controls;
using CefSharp.WinForms;
using System;
using System.Windows.Forms;
namespace CefSharp.MinimalExample.WinForms
{
@ -38,15 +38,12 @@ namespace CefSharp.MinimalExample.WinForms
DisplayOutput(version);
}
private void OnIsBrowserInitializedChanged(object sender, IsBrowserInitializedChangedEventArgs e)
{
if(e.IsBrowserInitialized)
private void OnIsBrowserInitializedChanged(object sender, EventArgs e)
{
var b = ((ChromiumWebBrowser)sender);
this.InvokeOnUiThreadIfRequired(() => b.Focus());
}
}
private void OnBrowserConsoleMessage(object sender, ConsoleMessageEventArgs args)
{