tangxu
2024-12-16 23fadc9cb0c09b665a1bbcef7eaf16f916045dc4
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
39
40
41
42
43
#region Imports
 
using DPumpHydr.WinFrmUI.RLT.Util;
using System.Drawing;
using System.Windows.Forms;
 
#endregion
 
namespace DPumpHydr.WinFrmUI.RLT.Controls
{
    #region ParrotCustomToolStrip
 
    public class ParrotToolStrip : ToolStrip
    {
        public ParrotToolStrip()
        {
            Dock = DockStyle.Top;
            base.Renderer = new StripeRemoval(borderColor);
            base.BackColor = Color.White;
            base.ForeColor = Color.Black;
            base.GripStyle = ToolStripGripStyle.Hidden;
        }
 
        private void RefreshUI()
        {
            base.Renderer = new StripeRemoval(borderColor);
        }
 
        public Color BorderColor
        {
            get => borderColor;
            set
            {
                borderColor = value;
                RefreshUI();
            }
        }
 
        private Color borderColor = Color.DodgerBlue;
    }
 
    #endregion
}