public VerificationDialog(IEngine engine, IDocumentsCollection _documents) { InitializeComponent(); // Initialize VerificationView component verificationView.Engine = engine; documents = _documents; }
private void verifyButton_Click(object sender, EventArgs e) { // Create a collection of documents to verify (only one document in this sample) IDocumentsCollection documents = _engine.CreateDocumentsCollection(); documents.Add(_document); // Create and show verification dialog. See the VerificationDialog.cs for details. // VerificationView in this dialog should be properly disposed of to ensure that // the associated verification session is closed and all resources are released in timely mannar using (VerificationDialog dialog = new VerificationDialog(_engine, documents)) { dialog.ShowDialog(); } }