OdessaGUIProject.TransButton.TransButton C# (CSharp) Method

TransButton() public method

public TransButton ( ) : System
return System
        public TransButton()
        {
            SetStyle(ControlStyles.Opaque, true);
            SetStyle(ControlStyles.DoubleBuffer, true);
            ForeColor = _odessaGreen;

            BackColor = Color.Transparent;
            FlatStyle = FlatStyle.Flat;
            FlatAppearance.BorderSize = 0;
            FlatAppearance.MouseDownBackColor = _odessaGreen;
            FlatAppearance.MouseOverBackColor = Color.Transparent;

            TextAlign = ContentAlignment.MiddleCenter;
            Font = new Font("Segoe UI", 18f, FontStyle.Regular);

            BackColor = Color.Transparent;
            BackgroundImage = Properties.Resources._30_percent_opacity;

            AutoSize = false;
            Width = 180;
            Height = 40;

            Alpha = 50;
            IsHovering = false;
        }