AnyPlace.MainPage.MygeocodequerylocationSearch_QueryCompleted C# (CSharp) Method

MygeocodequerylocationSearch_QueryCompleted() private method

private MygeocodequerylocationSearch_QueryCompleted ( object sender, QueryCompletedEventArgs e ) : void
sender object
e QueryCompletedEventArgs
return void
        void MygeocodequerylocationSearch_QueryCompleted(object sender, QueryCompletedEventArgs<IList<MapLocation>> e)
        {

            List<GeoCoordinate> r;
            if (e.Result.Count > 0)
            {
                _myQueryLocation = new RouteQuery();
                r = new List<GeoCoordinate> { new GeoCoordinate(_myLatitude, _myLongitude), e.Result[0].GeoCoordinate };
                _myQueryLocation.Waypoints = r;
                _myQueryLocation.QueryCompleted += MyQuerySearchLocation_QueryCompleted;
                _myQueryLocation.QueryAsync();
                //Mygeocodequerylocation.Dispose();
            }

        }
MainPage