-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
51 lines (46 loc) · 1.41 KB
/
Program.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using NetDimension.NanUI;
using NetDimension.NanUI.HostWindow;
using NetDimension.NanUI.EmbeddedFileResource;
using NetDimension.NanUI.JavaScript;
using System.Reflection;
using System.IO;
namespace CSUR.Apps
{
static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
WinFormium.CreateRuntimeBuilder(env =>
{
env.CustomCefSettings(settings =>
{
//在此处设置CEF参数
});
env.CustomCefCommandLineArguments(command =>
{
//在此设置CEF命令行
});
},app=> {
//启动指定窗体
app.UseDebuggingMode();
app.UseEmbeddedFileResource("http","csur.app.local","CSURWebs");
//app.UseEmbeddedFileResource("http", "csur1.app.local", "test");
app.UseMainWindow(context => new Main());
})
.Build()
.Run()
;
}
}
}