Exemplo n.º 1
0
 public void Delete()
 {
     if (Find(this.IdFactura))
     {
         ListaFactura.Remove(this);
         GestionArchivo gs = new GestionArchivo(pathID);
         gs.Save(IdFactura.ToString());
     }
 }
Exemplo n.º 2
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;
            }
        }
Exemplo n.º 3
0
 public override string ToString()
 {
     return(IdFactura.ToString());
 }
Exemplo n.º 4
0
 public override string ToString()
 {
     return(IdFactura.ToString() + "\t" + IdVenta.ToString() + "\t" + precioFinal.ToString());
 }