/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static SpaceWarsContext getAppContext() { if (appContext == null) { appContext = new SpaceWarsContext(); } return(appContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Start an application context and run one form inside it SpaceWarsContext appContext = SpaceWarsContext.getAppContext(); appContext.RunForm(new SpaceWarsForm()); Application.Run(appContext); }