private void img_Avatar_Loaded(object sender, RoutedEventArgs e) { int id = (int)(this.Tag); if (!wb_Dic.Keys.Contains(id)) { dic_image.Add(id, (Image)sender); client.GetImageByAcquirerIdAsync(id); } else { dic_image[id].Source = wb_Dic[id]; } }
private void img_Avatar_Loaded(object sender, RoutedEventArgs e) { int id = (int)(this.Tag); if (!wb_Dic.Keys.Contains(id)) { dic_image.Add(id, (Image)sender); client.GetImageByAcquirerIdAsync(id); } else { dic_image[id].Source = wb_Dic[id]; } }