Esempio n. 1
0
 private void DiscoveryFinished(object sender)
 {
     RunOnUiThread(() =>
     {
         _ProgressBar.Visibility = _LayoutMask.Visibility = ViewStates.Gone;
         Toast.MakeText(this, "Scanning finished", ToastLength.Long).Show();
         BlutoothAddressAdapter bt = new BlutoothAddressAdapter(this, printers);
         listView.Adapter          = bt;
     });
 }
Esempio n. 2
0
 private void DiscoveryHandler_OnFoundPrinter(object sender, IDiscoveredPrinter discoveredPrinter)
 {
     RunOnUiThread(() =>
     {
         Toast.MakeText(this, "Printer found", ToastLength.Long).Show();
         if (!printers.Contains(discoveredPrinter))
         {
             printers.Add(discoveredPrinter);
             BlutoothAddressAdapter bt = new BlutoothAddressAdapter(this, printers);
             listView.Adapter          = bt;
         }
     });
 }