private void SetFormRegion()
        {
            if (base.Region != null)
            {
                base.Region.Dispose();
            }

            Rectangle    rect = new Rectangle(Point.Empty, base.Size);
            GraphicsPath path;

            if (XTheme.UseDefaultTopRoundingFormRegion)
            {
                path = GraphicsPathHelper.CreateTopRoundedPathForFormRegion(rect);
            }
            else
            {
                // path = GraphicsPathHelper.CreateRoundedRect(rect, Radius, Round, false);
                path = GraphicsPathHelper.CreateRoundedRectanglePath(rect, Radius, Round);
            }

            this.Region = new Region(path);
        }