// Constructor public MainPage() { InitializeComponent(); helloWorldGame = new SpriteBatchAndFontGame(); helloWorldGame.Run(DrawingSurface); }
public MainPage() { InitializeComponent(); game = new SpriteBatchAndFontGame(); game.Run(this); }
static void Main() { var program = new SpriteBatchAndFontGame(); program.Run(); }
static void Main() { using (var program = new SpriteBatchAndFontGame()) program.Run(); }