Example #1
0
        private string DefineDifficultString(DifficultyMode difficultyMode)
        {
            string str = null;

            switch (difficultyMode)
            {
            case DifficultyMode.Easy:
                str = StringService.GetRandomString(3, _mainWindow.IsCaseSensitive);
                break;

            case DifficultyMode.Normal:
                str = StringService.GetRandomString(4, _mainWindow.IsCaseSensitive);
                break;

            case DifficultyMode.Hard:
                str = StringService.GetRandomString(5, _mainWindow.IsCaseSensitive);
                break;

            case DifficultyMode.Professional:
                str = StringService.GetRandomString(6, _mainWindow.IsCaseSensitive);
                break;

            case DifficultyMode.Expert:
                str = StringService.GetRandomString(7, _mainWindow.IsCaseSensitive);
                break;
            }

            return(str);
        }