protected static bool ShouldPaintFocusRectagle (ButtonBase button) { return (button.Focused || button.paint_as_acceptbutton) && button.Enabled && button.ShowFocusCues; }