public NativeHost(FormMain formMain) { this.formMain = formMain; //Enable Chrome Dev Tools when debugging WinForms #if DEBUG formMain.ChromiumBrowser.KeyboardHandler = new KeyboardHandler(); #endif }
static void Main() { Cef.Initialize(new CefSettings()); Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AppHost = new AppHost(); AppHost.Init().Start("http://*:1337/"); "ServiceStack SelfHost listening at {0} ".Fmt(HostUrl).Print(); Form = new FormMain(); Application.Run(Form); }
public WinFormsApp(FormMain form) { Form = form; }