public void DrawSkinFormBackground(SkinFormBackgroundRenderEventArgs e) { this.OnRenderSkinFormBackground(e); SkinFormBackgroundRenderEventHandler skinFormBackgroundRenderEventHandler = this.Events[SkinFormRenderer.EventRenderSkinFormBackground] as SkinFormBackgroundRenderEventHandler; if (skinFormBackgroundRenderEventHandler != null) { skinFormBackgroundRenderEventHandler(this, e); } }
protected override void OnRenderSkinFormBackground(SkinFormBackgroundRenderEventArgs e) { Graphics graphics = e.Graphics; Rectangle clipRectangle = e.ClipRectangle; SkinForm skinForm = e.SkinForm; using (new AntiAliasGraphics(graphics)) { using (Brush brush = new SolidBrush(this.ColorTable.Back)) { using (GraphicsPath graphicsPath = GraphicsPathHelper.CreatePath(clipRectangle, skinForm.Radius, skinForm.RoundStyle, false)) { graphics.FillPath(brush, graphicsPath); } } } }
protected abstract void OnRenderSkinFormBackground(SkinFormBackgroundRenderEventArgs e);