Exemplo n.º 1
0
        /// ------------------------------------------------------------------------------------
        /// <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);
        }
Exemplo n.º 2
0
 /// ------------------------------------------------------------------------------------
 /// <summary>
 /// Make it pretty behind the buttons.
 /// </summary>
 /// ------------------------------------------------------------------------------------
 private void pnlButtons_Paint(object sender, PaintEventArgs e)
 {
     SpongeColors.PaintDataEntryBackground(e.Graphics, pnlButtons.ClientRectangle, BorderSides.Top);
 }