public MainClass() { //display the splash screen and determine network status splash = new SplashScreen(this); splash.ShowDialog(); try { game = new GameClass(fullScreen, gameFormSize, enableNetwork); } catch(DirectXException) { return; } if( game.CreateGraphicsSample() ) game.Run(); }
public MainClass() { //display the splash screen and determine network status splash = new SplashScreen(this); splash.ShowDialog(); try { game = new GameClass(fullScreen, gameFormSize, enableNetwork); } catch (DirectXException) { return; } if (game.CreateGraphicsSample()) { game.Run(); } }