} // proc SetLoadedDocument private bool ClosePdf() { // clear document pdfViewer.Document = null; // close pdf loadedDocument?.Dispose(); // close object access if (dataAccess != null) { dataAccess.Dispose(); dataAccess = null; } dataInfo = null; return(true); } // func ClosePdf
} // ctor /// <summary></summary> public void Dispose() { dataAccess?.Dispose(); dataAccess = null; } // proc Dispose