WinForms - OnIsBrowserInitializedChanged custom event args removed
https://github.com/cefsharp/CefSharp/pull/2710
This commit is contained in:
parent
603088e28d
commit
23a1aa66b8
@ -2,10 +2,10 @@
|
|||||||
//
|
//
|
||||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
// 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.MinimalExample.WinForms.Controls;
|
||||||
using CefSharp.WinForms;
|
using CefSharp.WinForms;
|
||||||
|
using System;
|
||||||
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace CefSharp.MinimalExample.WinForms
|
namespace CefSharp.MinimalExample.WinForms
|
||||||
{
|
{
|
||||||
@ -38,15 +38,12 @@ namespace CefSharp.MinimalExample.WinForms
|
|||||||
DisplayOutput(version);
|
DisplayOutput(version);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnIsBrowserInitializedChanged(object sender, IsBrowserInitializedChangedEventArgs e)
|
private void OnIsBrowserInitializedChanged(object sender, EventArgs e)
|
||||||
{
|
|
||||||
if(e.IsBrowserInitialized)
|
|
||||||
{
|
{
|
||||||
var b = ((ChromiumWebBrowser)sender);
|
var b = ((ChromiumWebBrowser)sender);
|
||||||
|
|
||||||
this.InvokeOnUiThreadIfRequired(() => b.Focus());
|
this.InvokeOnUiThreadIfRequired(() => b.Focus());
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
private void OnBrowserConsoleMessage(object sender, ConsoleMessageEventArgs args)
|
private void OnBrowserConsoleMessage(object sender, ConsoleMessageEventArgs args)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user