コード例 #1
0
        public void Update()
        {
            List <AccountModel> accounts = new List <AccountModel>();

            DGR_Accounts.ItemsSource = null;
            using (var db = new ResourceModel())
            {
                var acc = db.GetAccount();
                foreach (var a in acc)
                {
                    accounts.Add(new AccountModel()
                    {
                        AccountID      = a.AccountID,
                        Login          = a.Login,
                        Type_Account   = a.Type_Account,
                        LastNamePeople = a.LastNamePeople,
                        Passwords      = db.GetPassword(ID)
                    });
                }
            }
            DGR_Accounts.ItemsSource = accounts;
        }