void form_Closed(object sender, EventArgs e) { owner.RemoveDocument(this); formCore.Closing -= form_Closing; formCore.Closed -= form_Closed; var documentContent = GetContent <IDocumentContent>(); if (documentContent != null) { documentContent.OnDestroy(); } owner.RemoveDocument(this); }
void form_Closed(object sender, EventArgs e) { owner.RemoveDocument(this); formCore.Closed -= form_Closed; }