Пример #1
0
 void dataClient_GetAvailableDevicesCompleted(object sender, MobileDataRepo.GetAvailableDevicesCompletedEventArgs e)
 {
     devicestextbox.Text += "hit method";
     foreach (var data in e.Result)
     {
         devicestextbox.Text += data.Value.ToString();
     }
 }
        void dataClient_GetAvailableDevicesCompleted(object sender, MobileDataRepo.GetAvailableDevicesCompletedEventArgs e)
        {
            var data = new List <ListBoxItem>();

            foreach (var item in e.Result)
            {
                var lbi = new ListBoxItem
                {
                    Content     = item.Value,
                    DataContext = item.Key
                };
                data.Add(lbi);
            }

            //  DeviceNameListBox.ItemsSource = data;
        }