public void DrawGroundFormBackground(FormBackgroundRenderEventArgs e) { OnRenderGroundFormBackground(e); var handle = Events[EventRenderGroundFormBackground] as FormBackgroundRenderEventHandler; if (handle != null) { handle(this, e); } }
protected override void OnRenderGroundFormBackground(FormBackgroundRenderEventArgs e) { Graphics g = e.Graphics; Rectangle rect = e.ClipRectangle; SkinForm form = e.Form; using (SmoothingModeGraphics antiGraphics = new SmoothingModeGraphics(g)) { using (Brush brush = new SolidBrush(StyleSheet.BaseColor)) { using (GraphicsPath path = GraphicsHelper.CreatePath( rect, form.Radius, form.RoundStyle, false)) { g.FillPath(brush, path); } } } }
protected abstract void OnRenderGroundFormBackground(FormBackgroundRenderEventArgs e);