Пример #1
0
        public static BitmapImage Image(BlackboxImageType type)
        {
            BitmapImage image = null;

            switch (type)
            {
            case BlackboxImageType.BlackBoxGuessed:
                image = _blackBoxGuessedImage;
                break;

            case BlackboxImageType.BlackBoxGuessFailed:
                image = _blackBoxGuessFailedImage;
                break;

            case BlackboxImageType.BlackBoxGuessing:
                image = _blackBoxGuessingImage;
                break;

            case BlackboxImageType.BlackBoxGuessNone:
                image = _blackBoxGuessNoneImage;
                break;

            case BlackboxImageType.LightBoxComplexDeflectionBottom:
                image = _lightBoxComplexDeflectionBottomImage;
                break;

            case BlackboxImageType.LightBoxComplexDeflectionLeft:
                image = _lightBoxComplexDeflectionLeftImage;
                break;

            case BlackboxImageType.LightBoxComplexDeflectionRight:
                image = _lightBoxComplexDeflectionRightImage;
                break;

            case BlackboxImageType.LightBoxComplexDeflectionTop:
                image = _lightBoxComplexDeflectionTopImage;
                break;

            case BlackboxImageType.LightBoxComplexReflectionHoriz:
                image = _lightBoxComplexReflectionHorizImage;
                break;

            case BlackboxImageType.LightBoxComplexReflectionVert:
                image = _lightBoxComplexReflectionVertImage;
                break;

            case BlackboxImageType.LightBoxConceal:
                image = _lightBoxConcealImage;
                break;

            case BlackboxImageType.LightBoxDeflectionBottom:
                image = _lightBoxDeflectionBottomImage;
                break;

            case BlackboxImageType.LightBoxDeflectionLeft:
                image = _lightBoxDeflectionLeftImage;
                break;

            case BlackboxImageType.LightBoxDeflectionRight:
                image = _lightBoxDeflectionRightImage;
                break;

            case BlackboxImageType.LightBoxDeflectionTop:
                image = _lightBoxDeflectionTopImage;
                break;

            case BlackboxImageType.LightBoxReflection:
                image = _lightBoxReflectionImage;
                break;

            case BlackboxImageType.NookBoxBackground:
                image = _nookBoxBackgroundImage;
                break;

            case BlackboxImageType.NookBoxForeground:
                image = _nookBoxForegroundImage;
                break;

            case BlackboxImageType.MessageCelebrate:
                image = _messageCelebrateImage;
                break;

            case BlackboxImageType.MessageCriticism:
                image = _messageCriticismImage;
                break;

            case BlackboxImageType.MessagePrompt:
                image = _messagePromptImage;
                break;

            default:
                break;
            }
            return(image);
        }
Пример #2
0
        public static BitmapImage Image(BlackboxImageType type)
        {
            BitmapImage image = null;

            switch (type)
            {
                case BlackboxImageType.BlackBoxGuessed:
                    image = _blackBoxGuessedImage;
                    break;
                case BlackboxImageType.BlackBoxGuessFailed:
                    image = _blackBoxGuessFailedImage;
                    break;
                case BlackboxImageType.BlackBoxGuessing:
                    image = _blackBoxGuessingImage;
                    break;
                case BlackboxImageType.BlackBoxGuessNone:
                    image = _blackBoxGuessNoneImage;
                    break;
                case BlackboxImageType.LightBoxComplexDeflectionBottom:
                    image = _lightBoxComplexDeflectionBottomImage;
                    break;
                case BlackboxImageType.LightBoxComplexDeflectionLeft:
                    image = _lightBoxComplexDeflectionLeftImage;
                    break;
                case BlackboxImageType.LightBoxComplexDeflectionRight:
                    image = _lightBoxComplexDeflectionRightImage;
                    break;
                case BlackboxImageType.LightBoxComplexDeflectionTop:
                    image = _lightBoxComplexDeflectionTopImage;
                    break;
                case BlackboxImageType.LightBoxComplexReflectionHoriz:
                    image = _lightBoxComplexReflectionHorizImage;
                    break;
                case BlackboxImageType.LightBoxComplexReflectionVert:
                    image = _lightBoxComplexReflectionVertImage;
                    break;
                case BlackboxImageType.LightBoxConceal:
                    image = _lightBoxConcealImage;
                    break;
                case BlackboxImageType.LightBoxDeflectionBottom:
                    image = _lightBoxDeflectionBottomImage;
                    break;
                case BlackboxImageType.LightBoxDeflectionLeft:
                    image = _lightBoxDeflectionLeftImage;
                    break;
                case BlackboxImageType.LightBoxDeflectionRight:
                    image = _lightBoxDeflectionRightImage;
                    break;
                case BlackboxImageType.LightBoxDeflectionTop:
                    image = _lightBoxDeflectionTopImage;
                    break;
                case BlackboxImageType.LightBoxReflection:
                    image = _lightBoxReflectionImage;
                    break;
                case BlackboxImageType.NookBoxBackground:
                    image = _nookBoxBackgroundImage;
                    break;
                case BlackboxImageType.NookBoxForeground:
                    image = _nookBoxForegroundImage;
                    break;
                case BlackboxImageType.MessageCelebrate:
                    image = _messageCelebrateImage;
                    break;
                case BlackboxImageType.MessageCriticism:
                    image = _messageCriticismImage;
                    break;
                case BlackboxImageType.MessagePrompt:
                    image = _messagePromptImage;
                    break;
                default:
                    break;
            }
            return image;
        }