void client_GetImageByUserIdCompleted(object sender, GetImageByUserIdCompletedEventArgs e) { if (!wb_Dic.Keys.Contains(e.Result.UserId)) { wb_Dic.Add(e.Result.UserId, Helper.BytesToBitMap(e.Result.Avatar)); } foreach (Image image in image_Dic[e.Result.UserId]) { image.Source = wb_Dic[e.Result.UserId]; } }
void client_GetImageByUserIdCompleted(object sender, GetImageByUserIdCompletedEventArgs e) { if(!wb_Dic.Keys.Contains(e.Result.UserId)) wb_Dic.Add(e.Result.UserId, Helper.BytesToBitMap(e.Result.Avatar)); foreach (Image image in image_Dic[e.Result.UserId]) { image.Source = wb_Dic[e.Result.UserId]; } }