public virtual void BeforeDocumentClosed(object document, ref bool cancel) { _DFramerCtlEvents_BeforeDocumentClosedEvent beforedocumentclosedEvent = new _DFramerCtlEvents_BeforeDocumentClosedEvent(document, cancel); this.parent.RaiseOnBeforeDocumentClosed(this.parent, beforedocumentclosedEvent); cancel = beforedocumentclosedEvent.cancel; }
internal void RaiseOnBeforeDocumentClosed(object sender, _DFramerCtlEvents_BeforeDocumentClosedEvent e) { if ((this.BeforeDocumentClosed != null)) { this.BeforeDocumentClosed(sender, e); } }