/// ------------------------------------------------------------------------------------ /// <summary> /// Handles the Paint event /// </summary> /// <param name="e">A PaintEventArgs that contains the event data.</param> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); Rectangle rect = new Rectangle(0, 0, Width, Height); m_borderDrawing.Draw(e.Graphics, rect, SIL.FieldWorks.Common.Drawing.BorderTypes.DoubleSunken); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Override OnPaint(). /// </summary> /// <param name="e"></param> /// ------------------------------------------------------------------------------------ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); m_borderDrawing.Draw(e.Graphics, ClientRectangle, SIL.FieldWorks.Common.Drawing.BorderTypes.Single); }