Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
            }
        }