コード例 #1
0
        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");
            }
        }
コード例 #2
0
        private void EditPaymentCommandExecuted(EventPaymentModel item)
        {
            RaisePropertyChanged("DisableParentWindow");

            var window = new AddEventPaymentView(Event, item);
            window.ShowDialog();

            RaisePropertyChanged("EnableParentWindow");
        }