Esempio n. 1
0
        //makes the colour scheme that is to be used
        public IColourPicker MakeColour(ColourChoices choice)
        {
            IColourPicker newColour = new GrayScaleColours();

            switch (choice)
            {
                case ColourChoices.GrayScale:
                    newColour = new GrayScaleColours();
                    break;
                case ColourChoices.Colour1:
                    newColour = new ColourScheme1();
                    break;
                case ColourChoices.Colour2:
                    newColour = new ColourScheme2();
                    break;
            }
            return newColour;
        }
Esempio n. 2
0
        //makes the colour scheme that is to be used
        public IColourPicker MakeColour(ColourChoices choice)
        {
            IColourPicker newColour = new GrayScaleColours();

            switch (choice)
            {
            case ColourChoices.GrayScale:
                newColour = new GrayScaleColours();
                break;

            case ColourChoices.Colour1:
                newColour = new ColourScheme1();
                break;

            case ColourChoices.Colour2:
                newColour = new ColourScheme2();
                break;
            }
            return(newColour);
        }