public App()
        {
            InitializeComponent();

            MainPage = new NavigationPage(new WelcomePage());

            g_CustomBluetoothManager = new CustomBluetoothManager(MainPage);
        }
Beispiel #2
0
        public ShowPairedListView()
        {
            InitializeComponent();
            _customBluetoothManager = (Application.Current as App)?.g_CustomBluetoothManager;

            Items = new ObservableCollection <Contact>();

            //_manager = BluetoothAdapter.DefaultAdapter;
            //_bondedDevices = _manager.BondedDevices;

            foreach (BluetoothDevice device in _customBluetoothManager.GetListBondedDevices())
            {
                Items.Add(new Contact(device.Name, device.Address));
            }

            MyListView.ItemsSource = Items;
        }
Beispiel #3
0
        public WelcomePage()
        {
            InitializeComponent();

            _customBluetoothManager = (Application.Current as App).g_CustomBluetoothManager;
        }