private void UserControl_Unloaded(object sender, RoutedEventArgs e)
 {
     if (printDocument != null)
     {
         printDocument.Dispose();
         printDocument = null;
     }
 }
Beispiel #2
0
 public void Dispose()
 => _printDocument.Dispose();