Пример #1
0
 protected override void OnPaint(PaintEventArgs e)
 {
     this.PaintBorder(e.Graphics, VisibleBorders, BorderColor, BorderDashStyle);
     PostPaint?.Invoke(this, e);
 }
Пример #2
0
 protected override void OnPaint(PaintEventArgs e)
 {
     base.OnPaint(e);
     e.Graphics.Clear(SystemColors.ActiveBorder);
     PostPaint?.Invoke(this, e);
 }