コード例 #1
0
        private void AumentarCantidad()
        {
            cant++;
            subtotal = cant * price;


            LocalSQLITE BaseDatos = new LocalSQLITE();
            platillos   plati     = new platillos();

            plati.subtotal   = subtotal;
            plati.cant       = cant;
            plati.categoria  = categoria;
            plati.imgPath    = imgPath;
            plati.price      = price;
            plati.descp      = descp;
            plati.nombre     = nombre;
            plati.idRes      = idRes;
            plati.idPlatillo = idPlatillo;


            if (BaseDatos.conexion.UpdateAsync(plati).Result == 1)
            {
                Debug.Print(this.nombre + " cant " + this.cant);
                Toast.MakeText(Android.App.Application.Context, plati.nombre + " agregada", ToastLength.Short).Show();
            }
            else
            {
                Debug.Print(this.nombre + " cant Not modified");
            }
        }
コード例 #2
0
        public platillosPedidosCompra(platillosPedidos p)
        {
            this.platiPedido = p;

            LocalSQLITE DB = new LocalSQLITE();
        }