From 23a1aa66b869a2bc010b0b7760cd9967ea456b6b Mon Sep 17 00:00:00 2001 From: amaitland Date: Sat, 27 Jul 2019 22:24:56 +1000 Subject: [PATCH] WinForms - OnIsBrowserInitializedChanged custom event args removed https://github.com/cefsharp/CefSharp/pull/2710 --- CefSharp.MinimalExample.WinForms/BrowserForm.cs | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/CefSharp.MinimalExample.WinForms/BrowserForm.cs b/CefSharp.MinimalExample.WinForms/BrowserForm.cs index 4305333..63ae770 100644 --- a/CefSharp.MinimalExample.WinForms/BrowserForm.cs +++ b/CefSharp.MinimalExample.WinForms/BrowserForm.cs @@ -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,14 +38,11 @@ namespace CefSharp.MinimalExample.WinForms 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)