public void toService(object sender, IDevice device) { IsBusy = false; StopScanning(); var servicePage = new ServiceList(adapter, device); // load services on the next page Navigation.PushAsync(servicePage); }
public void OnItemSelected (object sender, SelectedItemChangedEventArgs e) { if (((ListView)sender).SelectedItem == null) { return; } Debug.WriteLine (" xxxxxxxxxxxx OnItemSelected " + e.SelectedItem.ToString ()); IsBusy = false; StopScanning (); var device = e.SelectedItem as IDevice; var servicePage = new ServiceList(adapter, device); // load services on the next page Navigation.PushAsync(servicePage); ((ListView)sender).SelectedItem = null; // clear selection }
public void OnItemSelected(object sender, SelectedItemChangedEventArgs e) { if (((ListView)sender).SelectedItem == null) { return; } Debug.WriteLine(" xxxxxxxxxxxx OnItemSelected " + e.SelectedItem.ToString()); IsBusy = false; StopScanning(); var device = e.SelectedItem as IDevice; var servicePage = new ServiceList(adapter, device); // load services on the next page Navigation.PushAsync(servicePage); ((ListView)sender).SelectedItem = null; // clear selection }