public void GetHaiBaoCallback(IAsyncResult result)
        {
            AsyncResult       asyResult = (AsyncResult)result;
            GetHaiBaoDelegate del       = (GetHaiBaoDelegate)asyResult.AsyncDelegate;

            del.EndInvoke(result);
        }
 public void GetHaiBao(string fromUser, string toUser, string temppath)
 {
     GetHaiBaoDelegate del    = new GetHaiBaoDelegate(CreateHaiBao);
     IAsyncResult      result = del.BeginInvoke(fromUser, toUser, temppath, GetHaiBaoCallback, null);
     //del.EndInvoke(result);
 }