private void Button_Click_1(object sender, System.Windows.RoutedEventArgs e) { DAL.UnitOfWork oUnitOfWork = new DAL.UnitOfWork(); Utility.CurrentLoan = oUnitOfWork.LoanRepository .GetById(LoanId); ShowInstallmentsListPerLoanWindow oShowInstallmentsListPerLoanWindow = new ShowInstallmentsListPerLoanWindow(); oShowInstallmentsListPerLoanWindow.ShowDialog(); }
private void InstallmentsOfLoan_Click(object sender, System.Windows.RoutedEventArgs e) { Models.Loan oLoan = LoansGridControl.SelectedItem as Models.Loan; if (oLoan != null) { Utility.CurrentLoan = oLoan; ShowInstallmentsListPerLoanWindow oShowInstallmentsListPerLoanWindow = new ShowInstallmentsListPerLoanWindow(); oShowInstallmentsListPerLoanWindow.ShowDialog(); } }
private void InstallmentsOfLoan_Click(object sender, System.Windows.RoutedEventArgs e) { ViewModels.LoanViewModel oViewModel = MembersLoanGridControl.SelectedItem as ViewModels.LoanViewModel; if (oViewModel != null) { DAL.UnitOfWork oUnitOfWork = null; oUnitOfWork = new DAL.UnitOfWork(); Utility.CurrentLoan = oUnitOfWork.LoanRepository .GetById(oViewModel.Id); ShowInstallmentsListPerLoanWindow oShowInstallmentsListPerLoanWindow = new ShowInstallmentsListPerLoanWindow(); oShowInstallmentsListPerLoanWindow.ShowDialog(); } }