private void xsw_WritingCancelled(object sender, WritingCancelledEventArgs e) { if (WritingCancelled != null) { FinalizeWriter(); WritingCancelled.Invoke(sender, e); } }
protected virtual void RaiseWritingCancelledEvent(WritingCancelledEventArgs e) { var handler = WritingCancelled; if (handler != null) { handler(this, e); } }
private void Cancelled(object sender, WritingCancelledEventArgs e) { CleanUpWriter(e.Error); }
private void xpsDocumentWriter_WritingCancelled(object sender, WritingCancelledEventArgs e) { (Parent as ItemsControl).Items.Remove(this); }