using NetDimension.NanUI; using System; using System.Windows.Forms; namespace cn.xinelu.MedicalCheckup.Client { static class Program { /// /// 应用程序的主入口点。 /// [STAThread] static void Main() { Control.CheckForIllegalCrossThreadCalls = false; WinFormium.CreateRuntimeBuilder(env => { env.CustomCefSettings(settings => { // 在此处设置 CEF 的相关参数 }); env.CustomCefCommandLineArguments(commandLine => { // 在此处指定 CEF 命令行参数 }); }, app => { // 指定启动窗体 app.UseMainWindow(context => new MainWindow()); // 清理缓存 app.ClearCacheFile(); }) .Build() .Run(); } } }