Пример #1
0
        private void MapOutput_loanSchedule(BorrowerAndLoanInformation obj)
        {
            int     periods, loanTerm, num_pay = 12;
            decimal balance, rate;
            var     date = obj.Date2;

            int.TryParse(obj.LoanTerm, out loanTerm);
            decimal.TryParse(obj.LoanAmount, out balance);
            decimal.TryParse(obj.InterestRate, out rate);


            periods = loanTerm * num_pay;

            var loan = new LoanSchedule(balance, periods, rate, date, 12 / num_pay) as LoanSchedule;

            loanGrid.ItemsSource = loan.list;
        }
Пример #2
0
        private void MapOutput_loanSchedule()
        {
            int     periods, LoanTerm, num_pay = 12;
            decimal balance, rate, extraPay;
            var     Date = date.SelectedDate ?? DateTime.Now;

            int.TryParse(loanTerm.Text, out LoanTerm);
            decimal.TryParse(loanAmount.Text, out balance);
            decimal.TryParse(interestRate.Text, out rate);
            decimal.TryParse(ExtraPayment.Text, out extraPay);


            periods = LoanTerm * num_pay;

            var loan = new LoanSchedule(balance, extraPay, periods, rate, Date, 12 / num_pay) as LoanSchedule;

            loanGrid.ItemsSource     = loan.list;
            Loan_Summary.DataContext = loan.list2;
            LoanInf.DataContext      = loan.list1;
        }