Esempio n. 1
0
        private void ColourChooser1_Paint(object sender, PaintEventArgs e)
        {
            // Depending on the circumstances, force a repaint
            // of the color wheel passing different information.
            switch (changeType)
            {
            case ChangeStyle.HSV:
                myColourWheel.Draw(e.Graphics, HSV);
                break;

            case ChangeStyle.MouseMove:
            case ChangeStyle.None:
                myColourWheel.Draw(e.Graphics, selectedPoint);
                break;

            case ChangeStyle.RGB:
                myColourWheel.Draw(e.Graphics, RGB);
                break;
            }
        }
Esempio n. 2
0
        private void KryptonColourChooser2_Paint(object sender, PaintEventArgs e)
        {
            switch (_changeStyle)
            {
            case ChangeStyle.MOUSEMOVE:
                break;

            case ChangeStyle.RGB:
                _colourWheel.Draw(e.Graphics, _RGB);
                break;

            case ChangeStyle.HSV:
                _colourWheel.Draw(e.Graphics, _HSV);
                break;

            case ChangeStyle.NONE:
                _colourWheel.Draw(e.Graphics, _selectedPoint);
                break;

            default:
                break;
            }
        }