protected void OnBondStateChanged(BondStateChangedEventArgs e) { if (BondStateChanged != null) { BondStateChanged(this, e); } }
private void Rec_BondStateChanged(object sender, BondStateChangedEventArgs e) { if (e.NewState == Bond.Bonded) { ListAdapter.Remove(e.Device.Name); FoundDevices.Remove(e.Device); Toast.MakeText(this, "Gekoppeld met " + e.Device.Name, ToastLength.Short); } else { Toast.MakeText(this, "Bezig met koppelen met " + e.Device.Name, ToastLength.Long); } }