public virtual void OnActionReceived(BeaconEventArgs beaconEventArgs) { if (ActionReceived != null) { ActionReceived.Invoke(this, beaconEventArgs); } }
public virtual void OnBeaconExpiring(BeaconEventArgs beaconEventArgs) { if (BeaconExpired != null) { BeaconExpired.Invoke(this, beaconEventArgs); } }
private void beaconReceiver_ActionReceived(object sender, BeaconEventArgs e) { if (!beacons.Contains(e.Beacon)) { beacons.Add(e.Beacon); adapter.NotifyDataSetChanged(); } }