2 Star 21 Fork 2

专业采集 / BluePrint

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Program.cs 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
专业采集 提交于 2021-10-26 18:51 . 添加项目文件。
using System;
using CPF.Platform;
using CPF.Windows;
using 蓝图重制版.BluePrint;
using CPF.Linux;
#if !Net4
using CPF.Skia;
//using CPF.Mac;//如果需要支持Mac才需要
//using CPF.Linux;//如果需要支持Linux才需要
#endif
namespace 蓝图重制版
{
class Program
{
[STAThread]
static void Main(string[] args)
{
Application.Initialize(
#if Net4
(OperatingSystemType.Windows, new WindowsPlatform(), new CPF.GDIPlus.GDIPlusDrawingFactory())
#else
(OperatingSystemType.Windows, new WindowsPlatform(), new SkiaDrawingFactory()),
//(OperatingSystemType.OSX, new MacPlatform(), new SkiaDrawingFactory()),//如果需要支持Mac才需要
(OperatingSystemType.Linux, new LinuxPlatform(), new SkiaDrawingFactory())//如果需要支持Linux才需要
#endif
);
var data = new test();
Application.LoadFont("res://蓝图重制版/css/element_icons.ttf", "element_icons");
Application.Run(new Window1 {
DataContext = data,
CommandContext = data
});
}
}
}
C#
1
https://gitee.com/null_393_3615/BluePrint.git
git@gitee.com:null_393_3615/BluePrint.git
null_393_3615
BluePrint
BluePrint
master

搜索帮助