Example #1
0
 private void Game_GameOver(object sender)
 {
     var view = new View("Spel Afgelopen", "Druk op de escape toets.");
     view.Show();
 }
Example #2
0
        public void Back(bool remember = true)
        {
            if (Current == null)
                return;

            if (Current.CanLeave() && Previous != null)
            {
                Current = Previous;
                Invalidate();
            }
            else if (Current.CanLeave() && Previous == null)
                Current = null;

            if (!remember)
                _previous = null;
        }