internal override void PaintUp(PaintEventArgs e, CheckState state) {
if (Control.Appearance == Appearance.Button) {
ButtonPopupAdapter adapter = new ButtonPopupAdapter(Control);
adapter.PaintUp(e, Control.CheckState);
}
else {
System.Drawing.Graphics g = e.Graphics;
ColorData colors = PaintPopupRender(e.Graphics).Calculate();
LayoutData layout = PaintPopupLayout(e, false).Layout();
Region original = e.Graphics.Clip;
PaintButtonBackground(e, Control.ClientRectangle, null);
PaintImage(e, layout);
DrawCheckBackground(e, layout.checkBounds, colors.windowText, colors.options.highContrast ? colors.buttonFace : colors.highlight, true, colors);
DrawFlatBorder(e.Graphics, layout.checkBounds, colors.buttonShadow);
DrawCheckOnly(e, layout, colors, colors.windowText, colors.highlight, true);
PaintField(e, layout, colors, colors.windowText, true);
}
}