Esempio n. 1
0
        public static void Main(string[] args)
        {
            //AggContext.Init(embeddedResourceName: "lion_outline.config.json");

            var demoWidget = new lion_outline();

            var systemWindow = new SystemWindow(512, 512);

            systemWindow.Title = demoWidget.Title;
            systemWindow.AddChild(demoWidget);
            systemWindow.ShowAsSystemWindow();
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            //AggContext.Init(embeddedResourceName: "lion_outline.config.json");
            AggContext.Config.ProviderTypes.SystemWindowProvider = "MatterHackers.Agg.UI.OpenGLWinformsWindowProvider, agg_platform_win32";

            var demoWidget = new lion_outline();

            var systemWindow = new SystemWindow(512, 512)
            {
                Title = demoWidget.Title
            };

            systemWindow.AddChild(demoWidget);
            systemWindow.ShowAsSystemWindow();
        }