Files
lserp_cs_5.0/插件库/Lskj.MyControl/BrowserSetting/BsLifeSpanHandler.cs
T
2026-07-10 15:25:05 +08:00

28 lines
704 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xilium.CefGlue;
namespace Lskj.MyControl.BrowserSetting
{
public class BsLifeSpanHandler : CefLifeSpanHandler
{
private BsClient BsClient;
public BsLifeSpanHandler(BsClient bsClient)
{
BsClient = bsClient;
}
protected override void OnAfterCreated(Xilium.CefGlue.CefBrowser browser)
{
base.OnAfterCreated(browser);
BsClient.Created(browser);
}
protected override void OnBeforeClose(CefBrowser browser)
{
base.OnBeforeClose(browser);
}
}
}