private void EnableGlass()
 {
     if (GlassEnabled)
     {
         DavuxLib.Win32API.DwmAPI.MARGINS GlassMargins = new DavuxLib.Win32API.DwmAPI.MARGINS();
         if (SheetEffect)
         {
             GlassMargins.topHeight = GlassMargins.leftWidth = GlassMargins.rightWidth = GlassMargins.bottomHeight = -1;
         }
         else
         {
             GlassMargins.leftWidth    = GlassArea.Left;
             GlassMargins.rightWidth   = GlassArea.Right;
             GlassMargins.bottomHeight = GlassArea.Bottom;
             GlassMargins.topHeight    = GlassArea.Top;
         }
         DavuxLib.Win32API.DwmAPI.DwmExtendFrameIntoClientArea(this, GlassMargins);
     }
 }
 private void EnableGlass()
 {
     if (GlassEnabled)
     {
         DavuxLib.Win32API.DwmAPI.MARGINS GlassMargins = new DavuxLib.Win32API.DwmAPI.MARGINS();
         if (SheetEffect)
         {
             GlassMargins.topHeight = GlassMargins.leftWidth = GlassMargins.rightWidth = GlassMargins.bottomHeight = -1;
         }
         else
         {
             GlassMargins.leftWidth = GlassArea.Left;
             GlassMargins.rightWidth = GlassArea.Right;
             GlassMargins.bottomHeight = GlassArea.Bottom;
             GlassMargins.topHeight = GlassArea.Top;
         }
         DavuxLib.Win32API.DwmAPI.DwmExtendFrameIntoClientArea(this, GlassMargins);
     }
 }