Exemplo n.º 1
0
        public void LoadClientInfo()
        {
            ClientManagerModel clientManagerModel = new ClientManagerModel();
            List <string>      basicClientInfo    = clientManagerModel.GetClientInfo(personalID);

            lbl_FirstName.Text   = basicClientInfo[1];
            lbl_LastName.Text    = basicClientInfo[2];
            lbl_PersonalID.Text  = basicClientInfo[4];
            lbl_DateOfBirth.Text = basicClientInfo[3];
        }
Exemplo n.º 2
0
        public void LoadAccountsInfoGridView()
        {
            dgv_AccountsInfo.Rows.Clear();
            List <AccountModel> accounts = new ClientManagerModel().GetAccounts(personalID);

            foreach (AccountModel account in accounts)
            {
                string isOpen = "open";
                if (account.CloseDate != DateTime.MinValue)
                {
                    isOpen = "Closed: " + account.CloseDate.ToString();
                }
                dgv_AccountsInfo.Rows.Add(account.IBAN, account.Balance.ToString(), account.DebtLimit.ToString(), isOpen);
            }
        }