private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e) { var DataItem = e.SelectedItem as DataModel; var IndexPage = new IndexLista(DataItem.id); Navigation.PushAsync(IndexPage); }
async void FindByName_Completed(object sender, EventArgs e) { int.TryParse(FindByName.Text, out int z); List <DataModel> DataList = await App.DManager.GetDataAsync(); if (DataList.Exists(x => x.id == z)) { var IndexPage = new IndexLista(z); await Navigation.PushAsync(IndexPage); } }