protected override void OnPaint(PaintEventArgs e)
{
base.OnPaint(e);
this.Paint += FlatButton_Paint;
using (LinearGradientBrush linGrBrush = new LinearGradientBrush(new Point(borderRectangle.Left), new Point( borderRectangle.Right), Color.FromArgb(255, 248, 140, 17), Color.FromArgb(255, 241, 99, 21)))
{
e.Graphics.FillRectangles(linGrBrush);
}
}