private void GeoCode_Method1(string myaddress, int waypointIndex, string callingUser)
{
GCService.GeocodeCompleted += new EventHandler<NSpace.GCService.GeocodeCompletedEventArgs>(GeoCode_Method1_GeocodeCompleted);
GCService.GeocodeAsync(request, waypointIndex);
}
void GeoCode_Method1_GeocodeCompleted(object sender, NSpace.GCService.GeocodeCompletedEventArgs e)
{
//***QUESTION: how do I access variable "callinguser" from GeoCode_Method1 in this method??
}
當我打電話到GeoCode_Method1我在「callinguser」字符串變量發送,我想訪問這個在GeoCode_Method1_GeocodeCompleted(當異步GeoCodingAsync調用完成觸發)。我該怎麼做呢?傳遞的異步附加變量完成事件處理
謝謝大家!現在明白了。 – Simba 2010-11-28 03:58:07