Exemple #1
0
 private void Reset()
 {
     PurchaseOrders.Items.Clear();
     _poList.Clear();
     InvoiceId   = string.Empty;
     DisplayName = "Drag your Excel file into this window";
     Totals      = new TotalsViewModel(_eventAggregator);
 }
Exemple #2
0
        public ShellViewModel(
            IInvoiceService invoiceService,
            IRequestorService requestorService,
            IOrderKeyService orderKeyService,
            ISourcePathFactory <FlexCelOrderLineDto> sourcePathFactory,
            IValidator <SourcePath <FlexCelOrderLineDto> > sourcePathValidator,
            IWindowManager windowManager,
            IEventAggregator eventAggregator)
        {
            _invoiceService      = invoiceService;
            _requestorService    = requestorService;
            _orderKeys           = orderKeyService.AcquireOrderKeys();
            _sourcePathFactory   = sourcePathFactory;
            _sourcePathValidator = sourcePathValidator;
            _windowManager       = windowManager;
            _eventAggregator     = eventAggregator;

            PurchaseOrders = new PurchaseOrdersViewModel();
            _poList        = new List <PurchaseOrder>();

            Totals = new TotalsViewModel(_eventAggregator);
        }