ATMLCommonLibrary.controls.awb.AWBButton.drawClickStateBackground C# (CSharp) Method

drawClickStateBackground() private method

private drawClickStateBackground ( System e, LinearGradientMode mode, int tmpSoundCornerRadius, int tmpShadowOffSet ) : void
e System
mode LinearGradientMode
tmpSoundCornerRadius int
tmpShadowOffSet int
return void
        private void drawClickStateBackground( System.Windows.Forms.PaintEventArgs e,
            LinearGradientMode mode,
            int tmpSoundCornerRadius,
            int tmpShadowOffSet
            )
        {
            Pen pen = new Pen(BackColor);
            Rectangle newRect = new Rectangle(ClientRectangle.X + tmpShadowOffSet / 2, ClientRectangle.Y + tmpShadowOffSet / 2, ClientRectangle.Width - tmpShadowOffSet, ClientRectangle.Height - tmpShadowOffSet);
            GraphicsPath graphPath = AWBGraphicsPath.GetRoundPath(newRect, tmpSoundCornerRadius);
            e.Graphics.DrawRectangle(pen, newRect);
            drawBackground(e, _HoverBorderColor, _HoverColorA, _HoverColorB, ref newRect, graphPath);
            pen.Dispose();
        }