Exemple #1
0
 private async void Go_To_Products_List_Page(object sender, EventArgs e)
 {
     Func <List <ListItem> > getProducts = () => Product.Get_All().ConvertAll(product => new ListItem {
         Photo_Path = product.Photo_Url, Title = product.Name, Detail = product.Price, Id = product.Id
     });
     var page = new ListPage(getProducts, typeof(ProductForm), typeof(ProductDetail), "Productos");
     await Navigation.PushAsync(page);
 }
Exemple #2
0
 private async void Go_To_Sells_Page(object sender, EventArgs e)
 {
     Func <List <ListItem> > getVentas = () => Sell.Get_All().ConvertAll(venta => new ListItem {
         Photo_Path = venta.Photo_Path, Id = venta.Id, Title = venta.Timestamp.ToString(), Detail = $"${venta.Total}"
     });;
     var page = new ListPage(getVentas, typeof(VentasForm), typeof(VentasDetail), "Ventas");
     await Navigation.PushAsync(page);
 }
Exemple #3
0
 private async void Go_To_Clients_List_Page(object sender, EventArgs e)
 {
     Func <List <ListItem> > getClients = () => Client.Get_All().ConvertAll(client => new ListItem {
         Photo_Path = client.Profile_Url, Title = client.Name, Detail = client.Phone, Id = client.Id
     });
     var page = new ListPage(getClients, typeof(ClientForm), typeof(ClientDetail), "Clientes");
     await Navigation.PushAsync(page);
 }