public ControlVentas() { carrito = new Carrito(); leerVentas = File.ReadAllText("Venta.txt"); ctrlInventarioCarrito.CargarInventario(1); if (leerVentas.Length != 0) { filas = leerVentas.Split(new string[] { System.Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries); } }
private void Form1_Load(object sender, EventArgs e) { controlInvCategoria.CargarInventario(1); FijarValorDeControles(controlInvCategoria); }