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