示例#1
0
 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];
     }
 }
示例#2
0
 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];
     }
    
 }