示例#1
0
        public AllPayments PaytablesConverter(dynamic Paytables)
        {
            if (Paytables != null)
            {
                if (Paytables.Count > 0)
                {
                    foreach (var item in Paytables)
                    {
                        _payinfo.Add(new Payments(item.NumberPayment, item.DateTime, item.BodyCredit, item.InterestCoverage, item.CreditAmount, item.Overpayment));
                    }
                }
            }

            return(_payinfo);
        }
示例#2
0
        private void NewPayment(object obj)
        {
            IPayment newPayment = new Payment();

            _bon.Payments.Add(newPayment);
            PaymentViewModel zahlungWrapper = new PaymentViewModel(newPayment, _DBConnection);

            zahlungWrapper.PropertyChanged -= dingsda;
            zahlungWrapper.PropertyChanged += dingsda;

            AllPayments.Add(zahlungWrapper);
            CurrentPayment = zahlungWrapper;

            RaisePropertyChanged("CurrentPayment");
            RaisePropertyChanged("SumToPay");
            RaisePropertyChanged("PaymentsExist");
        }
示例#3
0
        private void Loaded()
        {
            EditCommand = null;

            AllPayments.Clear();
            foreach (var payment in paymentRepository.LoadRecurringList())
            {
                AllPayments.Add(payment);
            }

            Source = new ObservableCollection <AlphaGroupListGroup <Payment> >(
                AlphaGroupListGroup <Payment> .CreateGroups(AllPayments,
                                                            CultureInfo.CurrentUICulture,
                                                            s => s.ChargedAccount.Name));

            //We have to set the command here to ensure that the selection changed event is triggered earlier
            EditCommand = new MvxCommand <Payment>(Edit);
        }