public void DocFilterChanged() { // Determine whether the button should be active ClearDocFilter.RaiseCanExecuteChanged(); // Clear the collection FilteredDocuments.Clear(); // Add all documents that match the filter foreach (Document d in Documents) { if (d.ShortFileName.ToLower().Contains(DocFilterText.ToLower())) { FilteredDocuments.Add(d); } } }
public void ImportDocuments() { // Clear Documents Documents.Clear(); FilteredDocuments.Clear(); foreach (Craft c in Crafts) { // return a List of Documents var tmpDocs = Document.Import(c); foreach (Document d in tmpDocs) { Documents.Add(d); } } }
public void OnGenerateDocument() { PDFMerge.MergePDFs(FilteredDocuments.Where(f => f.Selected == true)); }