Example #1
0
 private void xsw_WritingCancelled(object sender, WritingCancelledEventArgs e)
 {
     if (WritingCancelled != null)
     {
         FinalizeWriter();
         WritingCancelled.Invoke(sender, e);
     }
 }
Example #2
0
        protected virtual void RaiseWritingCancelledEvent(WritingCancelledEventArgs e)
        {
            var handler = WritingCancelled;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Example #3
0
 private void Cancelled(object sender, WritingCancelledEventArgs e)
 {
     CleanUpWriter(e.Error);
 }
 private void xpsDocumentWriter_WritingCancelled(object sender, WritingCancelledEventArgs e)
 {
     (Parent as ItemsControl).Items.Remove(this);
 }