public ReportWordFilterViewModel(DocumentHandlerViewModel documentHandlerViewModel)
 {
     this.documentHandlerViewModel = documentHandlerViewModel;
     WordsToFilter = new ObservableCollection <string>();
     UpdateWordsToFilterListCommand = new UpdateWordsToFilterListCommand(this);
     FinishWordFilteringCommand     = new FinishWordFilteringCommand(this);
 }
        public MissingInvoicesViewModel(DocumentHandlerViewModel documentHandlerViewModel)
        {
            docHandler      = new DocHandler();
            MissingInvoices = docHandler.GetPurchaseDocumentsAs_SupplierPurchaseInvoicesGrouping(
                documentHandlerViewModel.InvoiceContent.Where(d => d.FileWasMoved == false).ToList());

            CloseWindowCommand     = new CloseWindowCommand(this);
            CopyToClipboardCommand = new CopyToClipboardCommand(this);
        }
示例#3
0
        public ColumnHeaderSelectorViewModel(DocumentHandlerViewModel documentHandlerViewModel, List <string> allColumnHeaders, DocumentType DocumentType)
        {
            this.documentHandlerViewModel = documentHandlerViewModel;
            AllHeadersList    = new ObservableCollection <string>(allColumnHeaders);
            this.DocumentType = DocumentType;

            DocumentRelatedHeadersList = InitialiseExampleListView(DocumentType);
            SelectedHeadersList        = new ObservableCollection <string>();

            AddHeaderCommand             = new AddHeaderCommand(this);
            RemoveHeaderCommand          = new RemoveHeaderCommand(this);
            FinishHeaderSelectionCommand = new FinishHeaderSelectionCommand(this, documentHandlerViewModel);
        }