Ejemplo n.º 1
0
 static void Main(string[] args)
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     
     var mainForm = new Forms.MainForm();
     // Hack: exit from Xna embedded window renderer.
     mainForm.Disposed += (object sender, EventArgs e) =>
         {
             mainForm.RenderDocument.Renderer.Exit();
         };
     mainForm.Show();
     mainForm.RenderDocument.Renderer.Run();
 }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            var mainForm = new Forms.MainForm();

            // Hack: exit from Xna embedded window renderer.
            mainForm.Disposed += (object sender, EventArgs e) =>
            {
                mainForm.RenderDocument.Renderer.Exit();
            };
            mainForm.Show();
            mainForm.RenderDocument.Renderer.Run();
        }