Exemplo n.º 1
0
        static void Main(string[] args)
        {
            NSApplication.Init();

            app                  = NSApplication.SharedApplication;
            app.Delegate         = new AppDelegate();
            app.ActivationPolicy = NSApplicationActivationPolicy.Regular;
            app.Menu             = Program.CreateMenu();

            app.FinishLaunching();
            //app.Run()

            //var dialog = Program.WindowWithTitle("Modal");
            //Program.RunModalWindow(dialog);

            var window = Program.WindowWithTitle("Normal");

            window.MakeKeyAndOrderFront(app);
            Program.Run();
        }