예제 #1
0
        //volver al menu principal con las listas cargadas
        public void volverSupermercado(ArrayList listaProductos, ArrayList listaPromociones, ArrayList listaCajas, ArrayList listaCajeros, ArrayList listaClientes)
        {
            Console.Clear();
            Supermercado super = new Supermercado(listaProductos, listaPromociones, listaCajas, listaCajeros, listaClientes);

            super.iniciar();
        }
예제 #2
0
        public static void Main(string[] args)
        {
            ArrayList listaProductos   = new ArrayList();
            ArrayList listaPromociones = new ArrayList();
            ArrayList listaCajas       = new ArrayList();
            ArrayList listaCajeros     = new ArrayList();

            Supermercado super = new Supermercado(listaProductos, listaPromociones, listaCajas, listaCajeros);

            super.iniciar();
        }
예제 #3
0
        public static void Main(string[] args)
        {
            //Crear nuevas listas vacias
            ArrayList listaProductos   = new ArrayList();
            ArrayList listaPromociones = new ArrayList();
            ArrayList listaCajas       = new ArrayList();
            ArrayList listaCajeros     = new ArrayList();
            ArrayList listaClientes    = new ArrayList();

            //instancio la funcion que trae las listas precargada
            preCarga pre = new preCarga();

            //funcion que trae las cajas
            pre.preCargaCajas(listaProductos, listaPromociones, listaCajas, listaCajeros, listaClientes);
            //funcion que trae las productos
            pre.preCargaProductos(listaProductos, listaPromociones, listaCajas, listaCajeros, listaClientes);
            //funcion que trae los cajeros
            pre.preCargaClientes(listaProductos, listaPromociones, listaCajas, listaCajeros, listaClientes);

            //instancia la clase Supermecado y pasa las listas como parametros al constructor
            Supermercado super = new Supermercado(listaProductos, listaPromociones, listaCajas, listaCajeros, listaClientes);

            super.iniciar();
        }