private async void CatlistView_ItemSelected(object sender, SelectedItemChangedEventArgs e)
        {
            //var item = (CatlistView.SelectedItem as ItemLista).Categoria;
            //close(item, null);
            //this.Navigation.PopModalAsync();

            if (CatlistView.SelectedItem != null)
            {
                var item = (CatlistView.SelectedItem as Result);
                CatlistView.SelectedItem = null;
                if (item.Tipo == "General")
                {
                    close(item.Nombre, null);
                    await this.Navigation.PopModalAsync();
                }
                if (item.Tipo == "Plato")
                {
                    var resultado = await dataPlato.GetOneFoodLine(item.Id);

                    await this.Navigation.PushModalAsync(new PlatoPage(resultado));

                    //Lanzo Plato por id
                }
                if (item.Tipo == "Proveedor")
                {
                    var resultado = await dataPlato.GetProveedorPorUsuario(item.Id);

                    //Lanzo Proveedor por id

                    var win = new ProveedorPage(resultado);
                    await this.Navigation.PushModalAsync(win);
                }
            }
        }
        private async void CatlistView_SelectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            if (CatlistView.SelectedItem != null)
            {
                var item = (CatlistView.SelectedItem as Result);

                if (item.Tipo == "General")
                {
                    close(item.Nombre, null);
                    await this.Navigation.PopModalAsync();
                }
                if (item.Tipo == "Plato")
                {
                    var resultado = await dataPlato.GetOneFoodLine(item.Id);

                    await this.Navigation.PushModalAsync(new PlatoPage(resultado));

                    //Lanzo Plato por id
                }
                if (item.Tipo == "Proveedor")
                {
                    var resultado = await dataPlato.GetProveedorPorUsuario(item.Id);

                    //Lanzo Proveedor por id

                    var win = new ProveedorPage(resultado);
                    await this.Navigation.PushModalAsync(win);
                }
            }
        }