Esempio n. 1
0
        public Result(LoanDetailsModel loanDetails)
        {
            this.loanDetails = loanDetails;

            InitializeComponent();
            AmortizationDetails = new AmortizationDetailsViewModel(loanDetails);

            BindingContext = AmortizationDetails;
        }
Esempio n. 2
0
        private void CalculateLoan(object sender, EventArgs e)
        {
            double.TryParse(loan_amount.Text, out double _loan_amount);
            int.TryParse(duration.Text, out int _duration);
            double.TryParse(interest.Text, out double _interest);

            LoanDetailsModel loanDetails = new LoanDetailsModel()
            {
                LoanAmount     = _loan_amount,
                LoanTermMonths = _duration,
                InterestRate   = _interest
            };

            AmortizationDetails = new AmortizationDetailsViewModel(loanDetails);

            BindingContext = AmortizationDetails;
        }