This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class RequestHandler : DefaultRequestHandler | |
{ | |
public SignInForm SignIn { get; private set; } | |
public override bool GetAuthCredentials(IWebBrowser browserControl, IBrowser browser, IFrame frame, bool isProxy, string host, int port, string realm, string scheme, IAuthCallback callback) | |
{ | |
try | |
{ | |
using (this.SignIn = new SignInForm(host)) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CefSharp; | |
namespace WindowsFormsApp1 | |
{ | |
public class LoadHandler : ILoadHandler | |
{ | |
public void OnFrameLoadEnd(IWebBrowser browserControl, FrameLoadEndEventArgs e) | |
{ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
using CefSharp; | |
using CefSharp.WinForms; | |
namespace WindowsFormsApp1 | |
{ | |
public class LifeSpanHandler : ILifeSpanHandler | |
{ | |
private Form1 _form; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using CefSharp; | |
namespace WindowsFormsApp1 | |
{ | |
public class LocalSchemeHandlerFactory : ISchemeHandlerFactory | |
{ | |
public IResourceHandler Create(IBrowser browser, IFrame frame, string schemeName, IRequest request) | |
{ | |
return ResourceHandler.FromFilePath("home.html"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Windows.Forms; | |
using CefSharp; | |
using CefSharp.WinForms; | |
namespace WindowsFormsApp1 | |
{ | |
public partial class Form1 : Form | |
{ | |
private TabControl _tabControl = null; |