/// ------------------------------------------------------------------------------------ /// <summary> /// Draw a border around the dialog. /// </summary> /// ------------------------------------------------------------------------------------ protected override void OnPaintBackground(PaintEventArgs e) { base.OnPaintBackground(e); var rc = ClientRectangle; rc.Inflate(-1, -1); SpongeColors.PaintBorder(e.Graphics, SpongeColors.BarBorder, rc, BorderSides.All); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Make it pretty behind the buttons. /// </summary> /// ------------------------------------------------------------------------------------ private void pnlButtons_Paint(object sender, PaintEventArgs e) { SpongeColors.PaintDataEntryBackground(e.Graphics, pnlButtons.ClientRectangle, BorderSides.Top); }