Esempio n. 1
0
        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");
        }
Esempio n. 2
0
        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();
            }
        }