Example #1
0
        private void modificarProductosListaPrecio(TomarProductos tomarP)
        {
            TomarListaPrecio tomarListaPrecio = StaticsFunctions.tomarListaPrecios(ag);

            if (tomarListaPrecio.listaPrecio != null)
            {
                for (int i = 0; i < tomarListaPrecio.listaPrecio.Count; i++)
                {
                    for (int j = 0; j < tomarP.productos.Count; j++)
                    {
                        if (tomarP.productos.ElementAt(j).id == tomarListaPrecio.listaPrecio.ElementAt(i).idProducto)
                        {
                            tomarP.productos.ElementAt(j).precio = (float)tomarListaPrecio.listaPrecio.ElementAt(i).precio;
                        }
                    }
                }
            }
        }
Example #2
0
 private void modificarProductos()
 {
     if (ag != null)
     {
         tlp = StaticsFunctions.tomarListaPrecios(ag);
         if (tlp.listaPrecio != null)
         {
             for (int i = 0; i < tlp.listaPrecio.Count; i++)
             {
                 for (int j = 0; j < tp.productos.Count; j++)
                 {
                     if (tp.productos.ElementAt(j).id == tlp.listaPrecio.ElementAt(i).idProducto)
                     {
                         tp.productos.ElementAt(j).precio = (float)tlp.listaPrecio.ElementAt(i).precio;
                     }
                 }
             }
         }
     }
 }
Example #3
0
 private void reiniciar()
 {
     pr = null;
     //MessageBox.Show("Menssage", "Producto correcto");
     tlp = StaticsFunctions.tomarListaPrecios();
 }