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; } }
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; } }
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; } }
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; } }
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; } }