static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var startPars = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); var platform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startPars); Application.Run(new Form1(platform)); LayoutFarm.UI.GdiPlus.MyWinGdiPortal.End(); }
static FormDemoList() { var startPars = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); gdiPlatform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startPars); //------------- //------------- }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //temp var startPars = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); var platform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startPars); formDemoList = new LayoutFarm.Dev.FormDemoList(); formDemoList.LoadDemoList(typeof(Program)); Application.Run(formDemoList); LayoutFarm.UI.GdiPlus.MyWinGdiPortal.End(); }
//----------------------------------------- public static void StartGraphicsHost() { lock (startLock) { if (isStarted) return; var startParams = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); startParams.IcuDataFile = IcuDataFile; gdiPlatform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startParams); uiPlatformWinForm = new LayoutFarm.UI.UIPlatformWinForm(); UI.UIPlatform.CurrentUIPlatform = uiPlatformWinForm; //-------------------- isStarted = true; //-------------------- } }
private static void Main() { // TestPrint(); // TestImage1(); // return; Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var startPars = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); var platform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startPars); Application.Run(new DevForm(platform)); LayoutFarm.UI.GdiPlus.MyWinGdiPortal.End(); // Application.Run(new PerfForm()); // PerfForm.Run(); }
//----------------------------------------- public static void StartGraphicsHost() { lock (startLock) { if (isStarted) { return; } var startParams = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); startParams.IcuDataFile = IcuDataFile; gdiPlatform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startParams); uiPlatformWinForm = new LayoutFarm.UI.UIPlatformWinForm(); UI.UIPlatform.CurrentUIPlatform = uiPlatformWinForm; //-------------------- isStarted = true; //-------------------- } }
static void Main() { ExampleFolderConfig.InitIcuData(); //------------------------------- Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //temp //TODO: fix this , LayoutFarm.Composers.Default.TextBreaker = new LayoutFarm.Composers.MyManagedTextBreaker(); //LayoutFarm.Composers.Default.TextBreaker = new LayoutFarm.Composers.MyNativeTextBreaker(); var startPars = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters(); var platform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startPars); //------------------------------- formDemoList = new LayoutFarm.Dev.FormDemoList(); formDemoList.LoadDemoList(typeof(Program)); LoadHtmlSamples(formDemoList.SamplesTreeView); Application.Run(formDemoList); LayoutFarm.UI.GdiPlus.MyWinGdiPortal.End(); }