Example #1
0
        private void UndoGetInvoiceNumberCommandExecuted()
        {
            _event.Event.InvoiceNumber = null;
            Invoice.InvoiceNumber      = 0;

            GetInvoiceNumberCommand.RaiseCanExecuteChanged();
            UndoGetInvoiceNumberCommand.RaiseCanExecuteChanged();
        }
Example #2
0
        private void GetInvoiceNumberCommandExecuted()
        {
            var invoiceNumber = _eventDataUnit.EventsRepository.GetNextInvoiceNumber();

            _event.Event.InvoiceNumber = invoiceNumber;
            Invoice.InvoiceNumber      = invoiceNumber;

            GetInvoiceNumberCommand.RaiseCanExecuteChanged();
            UndoGetInvoiceNumberCommand.RaiseCanExecuteChanged();
        }