public Game(Window window) { menu = new MainMenu(); //ncrunch: no coverage start menu.InitGame += () => { menu.Hide(); StartGame(); }; //ncrunch: no coverage end menu.QuitGame += window.CloseAfterFrame; window.Title = "Blocks"; }
public Game(Window window) { content = new FruitBlocksContent(); menu = new MainMenu(content); menu.InitGame += () => { //ncrunch: no coverage start menu.Hide(); StartGame(); }; //ncrunch: no coverage end menu.QuitGame += window.CloseAfterFrame; window.Title = "Fruit Blocks"; menu.SwitchContent += SwitchContent; }