36 lines
996 B
C#
36 lines
996 B
C#
using NetDimension.NanUI;
|
|
using System;
|
|
using System.Windows.Forms;
|
|
|
|
namespace cn.xinelu.MedicalCheckup.Client
|
|
{
|
|
static class Program
|
|
{
|
|
/// <summary>
|
|
/// 应用程序的主入口点。
|
|
/// </summary>
|
|
[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();
|
|
}
|
|
}
|
|
} |