private void AddPaymentCommandExecuted() { RaisePropertyChanged("DisableParentWindow"); var window = new AddEventPaymentView(Event); window.ShowDialog(); RaisePropertyChanged("EnableParentWindow"); if (window.DialogResult != null && window.DialogResult.Value) { _event.EventPayments.Add(window.ViewModel.EventPayment); _event.UpdatePaymentDetails(); RaisePropertyChanged("UpdateEventStatus"); } }
private void EditPaymentCommandExecuted(EventPaymentModel item) { RaisePropertyChanged("DisableParentWindow"); var window = new AddEventPaymentView(Event, item); window.ShowDialog(); RaisePropertyChanged("EnableParentWindow"); }