mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-04 09:37:03 +00:00
29 lines
628 B
C#
29 lines
628 B
C#
using System;
|
|
using System.Windows.Forms;
|
|
using CefSharp;
|
|
|
|
namespace CefSharp.Example
|
|
{
|
|
class Program
|
|
{
|
|
[STAThread]
|
|
static void Main(string[] args)
|
|
{
|
|
Settings settings = new Settings();
|
|
|
|
if(!CEF.Initialize(settings))
|
|
{
|
|
Console.WriteLine("Couldn't initialise CEF");
|
|
return;
|
|
}
|
|
|
|
CEF.RegisterScheme("test", new TestSchemeHandlerFactory());
|
|
CEF.RegisterJsObject("bound", new BoundObject());
|
|
|
|
Browser browser = new Browser();
|
|
Application.Run(browser);
|
|
}
|
|
|
|
}
|
|
}
|