예제 #1
0
        private async Task ListScanners()
        {
            Scanners.Clear();

            var result = Service.GetAllScanners();

            foreach (var item in result)
            {
                Scanners.Add(item);
            }

            await Task.CompletedTask;
        }
예제 #2
0
        private async Task ListScanners()
        {
            Scanners.Clear();

            var client = new DeviceClient();

            var result = client.GetAllScanners();

            foreach (var item in result)
            {
                Scanners.Add(item);
            }

            await Task.CompletedTask;
        }