Пример #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];
        }
Пример #2
0
 public ExistedClientsViewModel(ClientsViewModel clientsViewModel)
 {
     ClientsViewModel = clientsViewModel;
 }