/// <summary> /// Agrega una nueva instancia del item a la coleccion de items. /// </summary> /// <param name="sender"></param> /// <param name="item"></param> public virtual void Add(ComprobanteDeCompra sender, ItemComprobanteCompra item) { this.Parent = sender; this.Add(item); // item.OnRecalcItem += new ItemComprobante.RecalcularItem( this.EscuchoRecalculo ); // item.OnRefreshItem += new ItemComprobante.RefrescarItem( this.EscuchoRefresco ); // if ( OnRecalcItems != null ) // { // this.OnRecalcItems( this, new System.EventArgs() ); // } }
public static ComprobanteDeCompra Read(Stream stream) { stream.Position = 0; XmlSerializer serializer = new XmlSerializer(typeof(ComprobanteDeCompra)); XmlReader reader = new XmlTextReader(stream); ComprobanteDeCompra j = ( ComprobanteDeCompra )serializer.Deserialize(reader); reader.Close(); //j.FileName = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; return(j); }
public ItemsComprobantesCompra(string action, ComprobanteDeCompra parent, RelacionesComprobanteDeCompraOrigenDestino relaciones) { this._parent = parent; Init(action, relaciones); }
public ItemsComprobantesCompra(string action, ComprobanteDeCompra parent) { this._parent = parent; Init(action, null); }