/// <summary> /// Displays purchase documents that were not found/moved /// </summary> private void DisplayMissingDocsButton_Click(object sender, EventArgs e) { if (InvoiceContent != null) { DisplayMissingDocumentsText(InvoiceContent.Where(d => d.FileWasMoved == false).ToList()); } }
/// <summary> /// Moves the purchase invoices to the selected folder /// </summary> private void MovePurchasingInvoicesButton_Click(object sender, EventArgs e) { if (AllProductInvoices != null && InvoiceContent != null && SearchDirectoryPath != "" && MoveFilesDirectoryPath != "") { fileHandler.MoveDocuments(AllProductInvoices, InvoiceContent, SearchDirectoryPath, MoveFilesDirectoryPath); } if (InvoiceContent != null) { DisplayMissingDocumentsText(InvoiceContent.Where(d => d.FileWasMoved == false).ToList()); } }