private void UndoGetInvoiceNumberCommandExecuted() { _event.Event.InvoiceNumber = null; Invoice.InvoiceNumber = 0; GetInvoiceNumberCommand.RaiseCanExecuteChanged(); UndoGetInvoiceNumberCommand.RaiseCanExecuteChanged(); }
private void GetInvoiceNumberCommandExecuted() { var invoiceNumber = _eventDataUnit.EventsRepository.GetNextInvoiceNumber(); _event.Event.InvoiceNumber = invoiceNumber; Invoice.InvoiceNumber = invoiceNumber; GetInvoiceNumberCommand.RaiseCanExecuteChanged(); UndoGetInvoiceNumberCommand.RaiseCanExecuteChanged(); }