8,735
社区成员
发帖
与我相关
我的任务
分享
userService.AddUserInformationCompleted += new EventHandler<UserServiceReference2.AddUserInformationCompletedEventArgs>(userService_AddUserInformationCompleted);
userService.AddUserInformationAsync(user);
void userService_AddUserInformationCompleted(object sender, UserServiceReference2.AddUserInformationCompletedEventArgs e)
{
int result = e.Result;
if (result!=0)
{
objNewAddInformation.USER_ID = result;
list.Add(objNewAddInformation);
this.dataGrid1.ItemsSource = null;
this.dataGrid1.ItemsSource = list;
}
}