-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgram.cs
53 lines (51 loc) · 1.89 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
52
53
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using FaceCat;
using System.Diagnostics;
namespace encodeex
{
static class Program {
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
PreViewForm preViewForm = new PreViewForm();
preViewForm.loadFile("", false, new FCSize(1000, 800));
preViewForm.Text = "我的窗体";
MainForm mainForm = new MainForm();
mainForm.loadXml("MainFrame");
preViewForm.addForm2(mainForm);
preViewForm.m_xml.findView("divWindow").setPadding(new FCPadding(2));
preViewForm.m_xml.getNative().update();
preViewForm.m_xml.getNative().invalidate();
Application.Run(preViewForm);
}
}
public class AppHost
{
/// <summary>
/// 启动程序
/// </summary>
public static PreViewForm run(string cmd)
{
PreViewForm preViewForm = new PreViewForm();
preViewForm.setIsMerge(true);
preViewForm.loadFile("", false, new FCSize(1000, 800));
preViewForm.Text = "我的窗体";
preViewForm.setUrl("https://www.jjmfc.com/facecat_cs.html");
preViewForm.setIconViewName("app_FaceCat");
MainForm mainForm = new MainForm();
mainForm.loadXml("MainFrame");
preViewForm.addForm(mainForm);
preViewForm.m_xml.findView("divWindow").setPadding(new FCPadding(2));
preViewForm.m_xml.getNative().update();
preViewForm.m_xml.getNative().invalidate();
preViewForm.Show();
return preViewForm;
}
}
}