private void CustomerSelected(CustomersInvoiceView obj) { _customerInvoiceView = obj; CreateNewInvoiceCommand.RaiseCanExecuteChanged(); _invoiceListItemView = null; PreviewInvoiceCommand.RaiseCanExecuteChanged(); PreviewSpecificationCommand.RaiseCanExecuteChanged(); CreditNoteCommand.RaiseCanExecuteChanged(); Recalculateinvoice.RaiseCanExecuteChanged(); EmailInvoice.RaiseCanExecuteChanged(); RegenerateFiles.RaiseCanExecuteChanged(); }
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(); }