/// <summary>
        /// Format the border
        /// </summary>
        /// <param name="p_Style">The style.</param>
        /// <param name="p_width">The width.</param>
        /// <param name="p_ShadowColor">Color of the shadow.</param>
        /// <param name="p_LightColor">Color of the light.</param>
        /// <returns></returns>
        public static RectangleBorder FormatBorder(CommonBorderStyle p_Style, int p_width, Color p_ShadowColor, Color p_LightColor)
        {
            RectangleBorder l_Border = new RectangleBorder(new Border(Color.White));

            if (p_Style == CommonBorderStyle.Inset)
            {
                l_Border.Top    = new Border(p_ShadowColor, p_width);
                l_Border.Left   = new Border(p_ShadowColor, p_width);
                l_Border.Bottom = new Border(p_LightColor, p_width);
                l_Border.Right  = new Border(p_LightColor, p_width);
            }
            else if (p_Style == CommonBorderStyle.Raised)
            {
                l_Border.Top    = new Border(p_LightColor, p_width);
                l_Border.Left   = new Border(p_LightColor, p_width);
                l_Border.Bottom = new Border(p_ShadowColor, p_width);
                l_Border.Right  = new Border(p_ShadowColor, p_width);
            }
            else
            {
                l_Border.Top    = new Border(p_ShadowColor, p_width);
                l_Border.Left   = new Border(p_ShadowColor, p_width);
                l_Border.Bottom = new Border(p_ShadowColor, p_width);
                l_Border.Right  = new Border(p_ShadowColor, p_width);
            }
            return(l_Border);
        }
        /// <summary>
        /// Determines whether the specified <see cref="T:System.Object"></see> is equal to the current <see cref="T:System.Object"></see>.
        /// </summary>
        /// <param name="obj">The <see cref="T:System.Object"></see> to compare with the current <see cref="T:System.Object"></see>.</param>
        /// <returns>
        /// <c>true</c> if the specified <see cref="T:System.Object"></see> is equal to the current <see cref="T:System.Object"></see>; otherwise, <c>false</c>.
        /// </returns>
        public override bool Equals(object obj)
        {
            if (obj == null || obj.GetType() != GetType())
            {
                return(false);
            }
            RectangleBorder l_Other = (RectangleBorder)obj;

            return(l_Other.Left == this.left && l_Other.Bottom == this.bottom &&
                   l_Other.Top == this.top && l_Other.Right == this.right);
        }
 /// <summary>
 /// Format the border
 /// </summary>
 /// <param name="p_Style">The style.</param>
 /// <param name="p_width">The width.</param>
 /// <param name="p_ShadowColor">Color of the shadow.</param>
 /// <param name="p_LightColor">Color of the light.</param>
 /// <returns></returns>
 public static RectangleBorder FormatBorder(CommonBorderStyle p_Style, int p_width, Color p_ShadowColor, Color p_LightColor)
 {
     RectangleBorder l_Border = new RectangleBorder(new Border(Color.White));
       if (p_Style == CommonBorderStyle.Inset)
       {
     l_Border.Top = new Border(p_ShadowColor, p_width);
     l_Border.Left = new Border(p_ShadowColor, p_width);
     l_Border.Bottom = new Border(p_LightColor, p_width);
     l_Border.Right = new Border(p_LightColor, p_width);
       }
       else if (p_Style == CommonBorderStyle.Raised)
       {
     l_Border.Top = new Border(p_LightColor, p_width);
     l_Border.Left = new Border(p_LightColor, p_width);
     l_Border.Bottom = new Border(p_ShadowColor, p_width);
     l_Border.Right = new Border(p_ShadowColor, p_width);
       }
       else
       {
     l_Border.Top = new Border(p_ShadowColor, p_width);
     l_Border.Left = new Border(p_ShadowColor, p_width);
     l_Border.Bottom = new Border(p_ShadowColor, p_width);
     l_Border.Right = new Border(p_ShadowColor, p_width);
       }
       return l_Border;
 }