private void EditChargeCommandExecuted(EventChargeModel obj) { RaisePropertyChanged("DisableParentWindow"); var window = new AddEventChargeView(Event, obj); window.ShowDialog(); if (window.DialogResult != null && window.DialogResult.Value) { Event.RefreshEventPrice(); Event.UpdatePaymentDetails(); } RaisePropertyChanged("EnableParentWindow"); }
private void AddChargeCommandExecuted() { RaisePropertyChanged("DisableParentWindow"); var window = new AddEventChargeView(Event); window.ShowDialog(); RaisePropertyChanged("EnableParentWindow"); if (window.DialogResult != null && window.DialogResult.Value) { _event.EventCharges.Add(window.ViewModel.EventCharge); Event.RefreshEventPrice(); Event.UpdatePaymentDetails(); } }