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

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

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

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