CPF/CPF.Toolkit.Demo/Program.cs
luxiaoqi a1db3807ff mdi
2023-11-29 17:07:17 +08:00

24 lines
715 B
C#

using CPF.Controls;
using CPF.Platform;
using CPF.Skia;
using CPF.Toolkit.Dialogs;
using CPF.Windows;
namespace CPF.Toolkit.Demo
{
internal class Program
{
[STAThread]
static void Main(string[] args)
{
Application.Initialize(
(OperatingSystemType.Windows, new WindowsPlatform(false), new SkiaDrawingFactory { })
, (OperatingSystemType.OSX, new CPF.Mac.MacPlatform(), new SkiaDrawingFactory { UseGPU = false })
, (OperatingSystemType.Linux, new CPF.Linux.LinuxPlatform(), new SkiaDrawingFactory { UseGPU = false })
);
Application.Run(ViewManager.View<MainView>());
}
}
}