Exemplo n.º 1
0
        public ClientInfoViewModel(ClientsViewModel clientsViewModel)
        {
            ClientsViewModel = clientsViewModel;

            ControlViewModels.Add(new AccountViewModel
            {
                AccountModels = new ObservableCollection <AccountModel>(ClientsViewModel.SelectedClient.Accounts)
            });
            ControlViewModels.Add(new CreditViewModel
            {
                UserApprovedCreditModels = new ObservableCollection <IssuedCreditModel>(
                    ClientsViewModel.SelectedClient.IssuedCredits
                    .Where(c => c.IsApproved).Where(c => !c.IsRepaid))
            });

            SelectedControlViewModel = ControlViewModels[0];
        }
Exemplo n.º 2
0
 public ExistedClientsViewModel(ClientsViewModel clientsViewModel)
 {
     ClientsViewModel = clientsViewModel;
 }