mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-05 11:42:36 +00:00
rename CefSharp.Example to CefSharp.WinFormsExample
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using CefSharp;
|
||||
|
||||
namespace CefSharp.WinFormsExample
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user