private void UpdateReceivedImage(Bitmap bitmap) { Dispatcher.Invoke(new Action(() => { pbFingerPrint.Source = BBDataConverter.BitmapToImageSource(bitmap); })); }
private void UpdateCompMatchedUser(MyPerson match) { Dispatcher.Invoke(new Action(() => { if (match != null) { tbId.Text = match.Id.ToString(); tbName.Text = match.Name.ToString(); tbPhone.Text = match.Phone.ToString(); tbGuid.Text = match.Guid.ToString(); pbFPRef.Source = BBDataConverter.BitmapToImageSource(match.Fingerprints[0].AsBitmap); } else { tbId.Text = ""; tbName.Text = ""; tbPhone.Text = ""; tbGuid.Text = ""; pbFPRef.Source = null; } })); }