Exemplo n.º 1
0
        private void LoadPicker()
        {
            isPickerActive = true;

            try
            {
                if (oBluetooth.CheckConnection())
                {
                    oBluetooth.CloseConnection();
                }

                oBluetooth.LoadPairedDevices();

                if (oBluetooth.Count == 0)
                {
                    throw new Exception("No devices found");
                }

                pkrDevices.ItemsSource = oBluetooth;

                pkrDevices.Focus();
            }
            catch (Exception ex)
            {
                DisplayMessage(ex.Message);
            }
        }