是个登陆用的,登陆按钮这么写的
loginHandle = GlobalSettings.ws.BeginLogin("xxx", "yyy", LoginCallback, this);回调函数是这么定义的
private void LoginCallback(IAsyncResult ar)在"取消"按钮里这么写的
WebClientAsyncResult webClientAsyncResult = (WebClientAsyncResult)loginHandle;
webClientAsyncResult.Abort();
loginHandle = null;但执行后LoginCallback还是会被调用,咋搞的咛
loginHandle = GlobalSettings.ws.BeginLogin("xxx", "yyy", LoginCallback, this);回调函数是这么定义的
private void LoginCallback(IAsyncResult ar)在"取消"按钮里这么写的
WebClientAsyncResult webClientAsyncResult = (WebClientAsyncResult)loginHandle;
webClientAsyncResult.Abort();
loginHandle = null;但执行后LoginCallback还是会被调用,咋搞的咛
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货