public CustomTooltipAlertRenderer()
 {
     BackColor = Color.Gray;
     TitleForeColor = Color.White;
     ForeColor = Color.White;
     BorderColor = Color.Black;
     TitleFont = new Font(SystemFonts.DefaultFont, FontStyle.Bold);
     Font = SystemFonts.DefaultFont;
     CornerRadius = new CornerRadius(15, 0, 0, 15);
 }
 public CornerRadiusEditorControl(CornerRadius value)
 {
     this.crc = value;
     InitializeComponent();
     numLeftTop.Value = crc.TopLeft;
     numTopRight.Value = crc.TopRight;
     numBottomLeft.Value = crc.BottomLeft;
     numBottomRight.Value = crc.BottomRight;
     if (crc.Equals(crc.TopLeft))
         numericUpDown1.Value = crc.TopLeft;
     initialized = true;
 }
 public static GraphicsPath GetCapsule(RectangleF r, CornerRadius cr)
 {
     return RoundRect(r, cr.TopLeft, cr.TopRight, cr.BottomRight, cr.BottomLeft);
 }