protected virtual void RaiseOnRectangleChanged(RectangleEventArgs e) { EventHandler <RectangleEventArgs> handler = OnRectangleChanged; if (handler != null) { handler(this, e); } }
void mModel_OnInvalidateRectangle(object sender, RectangleEventArgs e) { try { parentControl.Invalidate(Rectangle.Round(e.Rectangle)); } catch (StackOverflowException) { //TODO: automatic exception report here? throw; } }