static void Main(string[] args) { disableConsoleClosing(); GameContext context = new GameContext(); CommandListener listener = new CommandListener(context); MessagePump.Run(context.MainWindow, context.Render); listener.Dispose(); context.Dispose(); }