예제 #1
0
        private void SetupDisplay()
        {
            cachedImages.Clear();
            displayMethod = properties.DisplayMethod.CreateDisplayMethod();

            switch (properties.Palette)
            {
            case DisplayPalette.BlueReadWhite:
                colors = ColorPalettes.BlueToRedToWhite;
                break;

            case DisplayPalette.Red:
                colors = ColorPalettes.RedValue;
                break;

            case DisplayPalette.Black:
                colors = ColorPalettes.WhiteToBlack;
                break;

            default:
            case DisplayPalette.Green:
                colors = ColorPalettes.GreenValue;
                break;
            }

            Refresh();
        }
예제 #2
0
        private void SetupDisplay()
        {
            cachedImages.Clear();
            displayMethod = properties.DisplayMethod.CreateDisplayMethod();

            switch (properties.Palette)
            {
                case DisplayPalette.BlueReadWhite:
                    colors = ColorPalettes.BlueToRedToWhite;
                    break;
                case DisplayPalette.Red:
                    colors = ColorPalettes.RedValue;
                    break;
                case DisplayPalette.Black:
                    colors = ColorPalettes.WhiteToBlack;
                    break;
                default:
                case DisplayPalette.Green:
                    colors = ColorPalettes.GreenValue;
                    break;
            }

            Refresh();
        }