tijian_tieying/winform/cn.xinelu.MedicalCheckup.Client/Program.cs

36 lines
996 B
C#
Raw Normal View History

2025-02-20 12:01:17 +08:00
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();
}
}
}