public static async Task <JediSphero> GetSpheroAsync()
        {
            IEnumerable <SpheroInformation> spheros = await SpheroConnectionProvider.DiscoverSpheros();

            SpheroInformation spheroInfo = spheros.FirstOrDefault();

            if (spheroInfo == null)
            {
                return(null);
            }

            SpheroConnection connection = await SpheroConnectionProvider.CreateConnection(spheroInfo);

            if (connection == null)
            {
                return(null);
            }
            var spheroDevice = new JediSphero(connection);

            return(spheroDevice);
        }
        private async Task SearchSphero()
        {
            _device = await SpheroManager.GetSpheroAsync();

            if (_device != null)
            {
                MessageBox.Show("Sphero connected!");
            }
            else
            {
                MessageBox.Show("Sphero not found!");
            }
        }