protected virtual void OnPaint (PaintEventArgs e) { PaintEventHandler eh = (PaintEventHandler)(Events [PaintEvent]); if (eh != null) eh (this, e); }