Esempio n. 1
0
        private static void Main(string[] args)
        {
            var platform = new EtoFormsPlatform(Platforms.Wpf);

            Forms.Init(platform, TargetIdiom.Desktop);
            var window = new Form {
                Size = new Size(800, 600)
            };

            platform.Run(window, new App());
        }
Esempio n. 2
0
        static void Main(string[] args)
        {
            var mac   = new Eto.Mac.Platform();
            var forms = new EtoFormsPlatform(mac);

            Forms.Init(forms, TargetIdiom.Desktop);
            var window = new Form {
                Size = new Eto.Drawing.Size(800, 600)
            };

            window.Menu = new MenuBar();
            forms.Run(
                window,
                new App()
                );
        }