yangyin
2025-03-27 b0de14c2670b9ff0079dacfb4b7457b438368f11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#region Imports
 
using DPumpHydr.WinFrmUI.RLT.Util;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Drawing;
using System.Windows.Forms;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Controls
{
    #region LostBorderPanel
 
    [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(IDesigner))]
    public class LostBorderPanel : LostPanel
    {
        private Color _bordercolor = ThemeLost.AccentPen.Color;
        public Color BorderColor
        {
            get => _bordercolor;
            set { _bordercolor = value; Invalidate(); }
        }
 
        public override void DrawShadow(Graphics g)
        {
            return;
        }
 
        protected override void OnPaint(PaintEventArgs e)
        {
            base.OnPaint(e);
            e.Graphics.DrawRectangle(new(_bordercolor), 0, 0, Width - 1, Height - 1);
        }
    }
 
    #endregion
}