Exemple #1
0
        private void GenerateNewPuzzle(bool exitOnCancel)
        {
            // Get difficulty
            var  newGameDialogLogic = new NewGameDialogLogic();
            bool result             = uiProvider.DisplayDialog(newGameDialogLogic);

            if (result)
            {
                // Show new puzzle
                BoardLogic.OnGeneratePuzzle(newGameDialogLogic.Difficulty);
            }
            else if (exitOnCancel)
            {
                uiProvider.Exit();
            }
        }