private static BitmapSource getPic(TL.Tag tag) { if (tag.Pictures == null || tag.Pictures.Length == 0) { return(null); } return(Graphic.Byte2BitmapSource(tag.Pictures[0].Data.Data)); }