Exemplo n.º 1
0
 public DeviceList()
 {
     InitializeComponent();
     _ble = BlueMan.Instance();
     listDevices.ItemsSource = Devices;
     lblScanning.SetBinding(IsVisibleProperty, nameof(this.IsScanning));
 }
Exemplo n.º 2
0
        public static BlueMan Instance()
        {
            if (_instance == null)
            {
                _instance = new BlueMan();
            }

            return(_instance);
        }
Exemplo n.º 3
0
 public MainPage(BleDevice selectedDevice = null)
 {
     InitializeComponent();
     _ble            = BlueMan.Instance();
     _selectedDevice = selectedDevice;
 }