Example #1
0
 private void UpdateReceivedImage(Bitmap bitmap)
 {
     Dispatcher.Invoke(new Action(() =>
     {
         pbFingerPrint.Source = BBDataConverter.BitmapToImageSource(bitmap);
     }));
 }
Example #2
0
 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;
         }
     }));
 }