/// <summary> /// Assigns the game state if lost /// </summary> public void AssignGameState() { if (Game.GameStates == Game.GameState.Lost) { frmGameOver frm = new frmGameOver(); frm.ShowDialog(); } }
/// <summary> /// Creating a method tocall the subform when game is lost. /// </summary> private void HandleGameState() { if (Game.State == Game.GameState.Lost) { Window wd = new frmGameOver(); wd.ShowDialog(); //DrawMap(); } }