using System; using System.Collections.Generic; using System.Linq; using System.Windows.Forms; namespace Lodestone.TestBed { static class Program { static void Main() { // It takes ~3 seconds to start up the main window form. // It would be good to have a splash screen during these seconds // System.Windows.Forms.MessageBox.Show("Starting"); 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.SharpDX9.Module"); Application.Run(new MainWindow()); } } }