protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); if (SuspendDisplayCount == 0) { e.Graphics.DrawImage(ProjectLogo ?? Properties.Resources.DefaultProjectLogo, ProjectLogoBounds); e.Graphics.SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.None; foreach (StatusLine Line in Lines) { Line.Draw(e.Graphics, Resources); } if (Caption != null) { Caption.Draw(e.Graphics, Resources); } if (Alert != null) { e.Graphics.DrawLine(AlertDividerPen, 0, AlertDividerY, Width, AlertDividerY); Alert.Draw(e.Graphics, Resources); } } }
public override void Render(Graphics Graphics) { Graphics.IntersectClip(Bounds); Line.Draw(Graphics, Resources); }