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