/// <summary> /// Raises the Closed event. /// </summary> protected virtual void OnClosed() { if (!_closedInvoked) { _closedInvoked = true; Closed.RaiseEvent(this, EventArgs.Empty); } }