using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Annulus.Testbed { static class Program { /// /// The main entry point for the application. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); Blacklight.Core.GraphicsAdapterManager.Singleton.ForceStartup(); if (Blacklight.Core.GraphicsAdapterManager.Singleton.Modules.Count == 0) { System.Windows.Forms.MessageBox.Show( "Could not locate any Blacklight graphics addapters (eg: XNA, Tao, or GDI). " + "Will now exit.", "Critical Error"); return; } Blacklight.Core.GraphicsAdapterManager.Singleton.SetCurrentModule( Blacklight.Core.GraphicsAdapterManager.Singleton.Modules.First()); Application.Run(new Main()); } } }