internal override void PaintOver(PaintEventArgs e, CheckState state)
 {
     if (Control.Appearance == Appearance.Button)
     {
         ButtonAdapter.PaintOver(e, Control.Checked ? CheckState.Checked : CheckState.Unchecked);
     }
     else
     {
         PaintUp(e, state);
     }
 }
Beispiel #2
0
        internal override void PaintOver(PaintEventArgs e, CheckState state)
        {
            if (Control.Appearance == Appearance.Button)
            {
                ButtonAdapter.PaintOver(e, Control.CheckState);
                return;
            }

            ColorData colors = PaintFlatRender(e).Calculate();

            if (Control.Enabled)
            {
                PaintFlatWorker(e, colors.windowText, colors.lowHighlight, colors.windowFrame, colors);
            }
            else
            {
                PaintFlatWorker(e, colors.buttonShadow, colors.buttonFace, colors.buttonShadow, colors);
            }
        }