示例#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);
 }
示例#2
0
        public VentasDetail(int id)
        {
            InitializeComponent();
            Venta_Info = Sell.Get(id);

            Product_List = Product.Get_All().Where(product => product.Quantity > 0).ToList();
            Client_List  = Client.Get_All();

            Product_Info = Product.Get(Venta_Info.Product_Id);
            Client_Info  = Client.Get(Venta_Info.Client_Id);
        }
示例#3
0
 public VentasForm()
 {
     Product_List = Product.Get_All().Where(product => product.Quantity > 0).ToList();
     Client_List  = Client.Get_All();
     InitializeComponent();
 }