示例#1
0
        public void UpdateLinkedAddresses()
        {
            Proxies.AppDataClient DataClient = new Proxies.AppDataClient();
            try
            {
                DataClient.Open();

                if (LinkedAddresses.Count != 0)
                {
                    LinkedAddresses.Clear();

                    foreach (var item in DataClient.GetAddressesListByPerson(this.pID).AddressList)
                    {
                        LinkedAddresses.Add(item);
                    }
                }
            }
            finally
            {
                DataClient.Close();
            }
        }