private void OnBluetoothError(BluetoothException exception) { if (!SuppressDisconnectionEvents) { BluetoothError?.Invoke(this, exception); } }
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; } }