public void OnItemSelected (object sender, SelectedItemChangedEventArgs e)
		{
			if (((ListView)sender).SelectedItem == null) {
				return;
			}
			StopScanning ();

			var device = e.SelectedItem as IDevice;

			var servicePage = new DeviceDetail(adapter, device.ID);
			// load services on the next page
			Navigation.PushAsync(servicePage);

			((ListView)sender).SelectedItem = null; // clear selection
		}
Esempio n. 2
0
        public void OnItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            if (((ListView)sender).SelectedItem == null)
            {
                return;
            }
            StopScanning();

            var device = e.SelectedItem as IDevice;

            var servicePage = new DeviceDetail(adapter, device.ID);

            // load services on the next page
            Navigation.PushAsync(servicePage);

            ((ListView)sender).SelectedItem = null;             // clear selection
        }