Example #1
0
        private void CommitChargeCommandExecuted(EventChargeModel obj)
        {
            obj.IsCommited = true;

            if (_event.EventStatus.Name != "Confirmed")
            {
                // If event status is not Confirmed then we can change event status to Confirmed

                bool?dialogResult = null;

                RadWindow.Confirm(new DialogParameters()
                {
                    Owner   = Application.Current.MainWindow,
                    Content = "Would you like to change event status to confirmed?",
                    Closed  = (sender, args) => { dialogResult = args.DialogResult; }
                });

                if (dialogResult == true)
                {
                    _event.EventStatus = _eventStatuses.FirstOrDefault(x => x.Name == "Confirmed");
                }
            }
            AddInvoiceCommand.RaiseCanExecuteChanged();
        }
Example #2
0
 private void UndoCommitChargeCommandExecuted(EventChargeModel obj)
 {
     obj.IsCommited = false;
     AddInvoiceCommand.RaiseCanExecuteChanged();
 }