Ejemplo n.º 1
0
 private void OnBluetoothError(BluetoothException exception)
 {
     if (!SuppressDisconnectionEvents)
     {
         BluetoothError?.Invoke(this, exception);
     }
 }
Ejemplo n.º 2
0
        private void OnBluetoothError(object?sender, BluetoothException e)
        {
            switch (e.ErrorCode)
            {
            case BluetoothException.ErrorCodes.NoAdaptersAvailable:
                new MessageBox()
                {
                    Title       = Loc.Resolve("error"),
                    Description = Loc.Resolve("nobluetoothdev")
                }.ShowDialog(this);
                break;

            default:
                Pager.SwitchPage(BluetoothImpl.Instance.RegisteredDeviceValid
                        ? AbstractPage.Pages.NoConnection
                        : AbstractPage.Pages.Welcome);
                break;
            }
        }