Beispiel #1
0
 public virtual void OnStatusReceived(BeaconStatusEventArgs statusEventArgs)
 {
     if (StatusReceived != null)
     {
         StatusReceived.Invoke(this, statusEventArgs);
     }
 }
        private void serviceStatusReceiver_StatusReceived(object sender, BeaconStatusEventArgs e)
        {
            int statusStringId = Resource.String.off;

            switch (e.Status)
            {
            case BeaconStatus.FastScanning:
                statusStringId = Resource.String.fast_scanning;
                break;

            case BeaconStatus.NotScanning:
                statusStringId = Resource.String.not_scanning;
                break;

            case BeaconStatus.Scanning:
                statusStringId = Resource.String.scanning;
                break;

            case BeaconStatus.Off:
            default:
                statusStringId = Resource.String.off;
                break;
            }

            scanningStatus.Text = Resources.GetString(statusStringId);
        }