示例#1
0
 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();
 }
示例#2
0
        static FormDemoList()
        {

            var startPars = new LayoutFarm.UI.GdiPlus.MyWinGdiPortalSetupParameters();
            gdiPlatform = LayoutFarm.UI.GdiPlus.MyWinGdiPortal.Start(startPars);

            //-------------


            //-------------
        }
示例#3
0
 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();
 }
示例#4
0
        //-----------------------------------------

        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;
                //--------------------
            }
        }
示例#5
0
        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();
        }
示例#6
0
        //-----------------------------------------

        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;
                //--------------------
            }
        }
示例#7
0
        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();
        }