public List<DestinationListItem> GetListItems()
 {
     List<DestinationListItem> list = new List<DestinationListItem>();
     Controller controller = Controller.GetController();
     if (controller != null)
     {
         Dictionary<string, DetectedService> availableServices = controller.DetectedServices;
         foreach (DetectedService ds in availableServices.Values)
         {
             BonjourListItem bli = new BonjourListItem(ds, this);
             list.Add(bli);
         }
     }
     return list;
 }
        public List <DestinationListItem> GetListItems()
        {
            List <DestinationListItem> list = new List <DestinationListItem>();
            Controller controller           = Controller.GetController();

            if (controller != null)
            {
                Dictionary <string, DetectedService> availableServices = controller.DetectedServices;
                foreach (DetectedService ds in availableServices.Values)
                {
                    BonjourListItem bli = new BonjourListItem(ds, this);
                    list.Add(bli);
                }
            }
            return(list);
        }