Exemplo n.º 1
0
 protected MetroForm()
 {
     SetStyle
     (
         ControlStyles.UserPaint |
         ControlStyles.AllPaintingInWmPaint |
         ControlStyles.ResizeRedraw |
         ControlStyles.OptimizedDoubleBuffer |
         ControlStyles.ContainerControl |
         ControlStyles.SupportsTransparentBackColor,
         true
     );
     UpdateStyles();
     _mth            = new Methods();
     _utl            = new Utilites();
     _user32         = new User32();
     Padding         = new Padding(12, 70, 12, 12);
     FormBorderStyle = FormBorderStyle.None;
     _backgroundImageTransparency = 0.90f;
     base.Font        = MetroFonts.SemiLight(13);
     DropShadowEffect = true;
     _showLeftRect    = true;
     _showHeader      = false;
     AllowResize      = true;
     ApplyTheme();
 }