private void shortTimeRB_CheckedChanged(object sender, EventArgs e) { if (shortTimeRB.Checked == true) { iearyDebt = getShortTimeImplemation(); } else { shortMonthMoneyRB.Checked = true; } }
private void setDefaultImplemation() { if (GlobalObject.Debt.DebtType == DebtType.MEqualCaptial) { iearyDebt = new ShortMonthsBigRepayS1(this.planBigRepayTimeDTP.Value); } else if (GlobalObject.Debt.DebtType == DebtType.MEqualInterest) { iearyDebt = new ShortMonthsBigRepayS2(this.planBigRepayTimeDTP.Value); } }
private IBigRepayDebt getShortTimeImplemation() { IBigRepayDebt iearyDebt; if (GlobalObject.Debt.DebtType == DebtType.MEqualCaptial) { iearyDebt = new ShortMonthsBigRepayS1(this.planBigRepayTimeDTP.Value); } else if (GlobalObject.Debt.DebtType == DebtType.MEqualInterest) { iearyDebt = new ShortMonthsBigRepayS2(this.planBigRepayTimeDTP.Value); } else { throw new Exception("为配置贷款类型!"); } return(iearyDebt); }