file-formats-wpf-demos/pdfviewer/Views/Encryption.xaml.cs

40 строки
1.1 KiB
C#

#region Copyright Syncfusion Inc. 2001-2024.
// Copyright Syncfusion Inc. 2001-2024. All rights reserved.
// Use of this code is subject to the terms of our license.
// A copy of the current license can be obtained at any time by e-mailing
// licensing@syncfusion.com. Any infringement will be prosecuted under
// applicable laws.
#endregion
using syncfusion.demoscommon.wpf;
namespace syncfusion.pdfviewerdemos.wpf
{
/// <summary>
/// Interaction logic for InkSignature.xaml
/// </summary>
public partial class Encryption : DemoControl
{
public Encryption()
{
InitializeComponent();
}
public Encryption(string themename) : base(themename)
{
InitializeComponent();
}
protected override void Dispose(bool disposing)
{
pdfviewer1.Unload(true);
pdfviewer1 = null;
if (this.DataContext is InkSignatureViewModel)
{
(this.DataContext as InkSignatureViewModel).DocumentStream.Dispose();
this.DataContext = null;
}
base.Dispose(disposing);
}
}
}