Esempio n. 1
0
        public Vendedor()
        {
            Count = ListaVendedores.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdVendedor = Convert.ToInt32(ID);
                gs.Delete(IdVendedor.ToString());
            }
            else
            {
                IdVendedor = ListaVendedores.Count + 1;
            }
        }
Esempio n. 2
0
        public Producto()
        {
            Count = ListaProductos.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdProducto = Convert.ToInt32(ID);
                gs.Delete(IdProducto.ToString());
            }
            else
            {
                IdProducto = ListaProductos.Count + 1;
            }
        }
Esempio n. 3
0
        public Inventario()//Cambio
        {
            Count = ListaInventario.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdInventario = Convert.ToInt32(ID);
                gs.Delete(IdInventario.ToString());
            }
            else
            {
                IdInventario = ListaInventario.Count + 1;
            }
        }
Esempio n. 4
0
        public Cliente()
        {
            Count = ListaClientes.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdCliente = Convert.ToInt32(ID);
                gs.Delete(IdCliente.ToString());
            }
            else
            {
                IdCliente = ListaClientes.Count + 1;
            }
        }
Esempio n. 5
0
        public Factura()//Here
        {
            Count = ListaFactura.Count;

            GestionArchivo gs = new GestionArchivo(pathID);

            gs.CreateFile();
            string ID = gs.GetDateOne();

            if (ID != null)
            {
                IdFactura = Convert.ToInt32(ID);
                gs.Delete(IdFactura.ToString());
            }
            else
            {
                IdFactura = ListaFactura.Count + 1;
            }
        }
Esempio n. 6
0
        public static void Delete(object data)
        {
            GestionArchivo gs = new GestionArchivo(path);

            gs.Delete(data);
        }