File: Program.cs

package info (click to toggle)
box2d 2.0.1%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 1,748 kB
  • ctags: 2,143
  • sloc: cpp: 15,308; xml: 1,249; cs: 648; makefile: 338; ansic: 28
file content (30 lines) | stat: -rw-r--r-- 805 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Text;
using Box2D.Net;
using System.Windows.Forms;

namespace TestBed.Net
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.Title = "Box2D.Net Test Bed";
            Application.EnableVisualStyles();
            MainWindow win = new MainWindow();

            Console.Write("Loading the OpenGL display window.  Please be patient... ");

            //Show above the console
            win.Show();
            win.BringToFront(); //Doesn't bring above the console?
            win.TopMost = true; //Hacky fix instead:
            win.TopMost = false;

            Console.WriteLine("DONE");
            
            Application.Run(win);            
        }
    }
}