Exemple #1
0
 private void CustomerSelected(CustomersInvoiceView obj)
 {
     _customerInvoiceView = obj;
     CreateNewInvoiceCommand.RaiseCanExecuteChanged();
     _invoiceListItemView = null;
     PreviewInvoiceCommand.RaiseCanExecuteChanged();
     PreviewSpecificationCommand.RaiseCanExecuteChanged();
     CreditNoteCommand.RaiseCanExecuteChanged();
     Recalculateinvoice.RaiseCanExecuteChanged();
     EmailInvoice.RaiseCanExecuteChanged();
     RegenerateFiles.RaiseCanExecuteChanged();
 }
Exemple #2
0
        private void InvoiceSelected(InvoiceListItemView obj)
        {
            ActionPanels.Clear();
            var invoiceActions = new InvoiceActionPanelViewFactory(obj);

            ActionPanels.Add(invoiceActions.CreateActionPanelView());
            _invoiceListItemView = obj;
            PreviewInvoiceCommand.RaiseCanExecuteChanged();
            PreviewSpecificationCommand.RaiseCanExecuteChanged();
            CreditNoteCommand.RaiseCanExecuteChanged();
            Recalculateinvoice.RaiseCanExecuteChanged();
            EmailInvoice.RaiseCanExecuteChanged();
            RegenerateFiles.RaiseCanExecuteChanged();
        }