public void DrawSkinFormBackground( SkinFormBackgroundRenderEventArgs e) { OnRenderSkinFormBackground(e); SkinFormBackgroundRenderEventHandler handle = Events[EventRenderSkinFormBackground] as SkinFormBackgroundRenderEventHandler; if (handle != null) { handle(this, e); } }
protected override void OnRenderSkinFormBackground( SkinFormBackgroundRenderEventArgs e) { Graphics g = e.Graphics; Rectangle rect = e.ClipRectangle; SkinForm form = e.SkinForm; using (AntiAliasGraphics antiGraphics = new AntiAliasGraphics(g)) { using (Brush brush = new SolidBrush(ColorTable.Back)) { using (GraphicsPath path = GraphicsPathHelper.CreatePath( rect, form.Radius, form.RoundStyle, false)) { g.FillPath(brush, path); } } } }
protected abstract void OnRenderSkinFormBackground( SkinFormBackgroundRenderEventArgs e);