Пример #1
0
        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);
                }
            }
        }
Пример #2
0
        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);
                }
            }
        }
Пример #3
0
 public void OnGenerateDocument()
 {
     PDFMerge.MergePDFs(FilteredDocuments.Where(f => f.Selected == true));
 }