示例#1
0
 private void Init()
 {
     ClientsList.ItemsSource                   = DataReceiver.GetClients();
     ClientsList.MouseDoubleClick             += ClientsList_MouseDoubleClick;
     App.Glue.Interop.ConnectionStatusChanged += Interop_ConnectionStatusChanged;
     // 4.2 This is an appropriate place to register your service
     RegisterToStickyWindows();
 }
        public List <ContactInfo> FindWhoToCall()
        {
            // 5. Return the contact information collection
            var contacts = DataReceiver.GetClients().Select(client => new ContactInfo()
            {
                FullName = client.FullName, PhoneNumber = client.PhoneNumber
            });

            return(contacts.ToList());;
        }