예제 #1
0
        private void ListView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            var DataItem  = e.SelectedItem as DataModel;
            var IndexPage = new IndexLista(DataItem.id);

            Navigation.PushAsync(IndexPage);
        }
예제 #2
0
        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);
            }
        }