public FrmCrearSubsidio(Subsidio subsidio, XPCollection xpcSubsidio, UnitOfWork uow) : this() { this.Subsidio = subsidio; this.uow = uow; this.xpcSubsidio = xpcSubsidio; }
private void EditSubsidio(Subsidio subsidio) { FrmCrearSubsidio crearSubsidio = new FrmCrearSubsidio(subsidio,xpcSubsidio,uow); crearSubsidio.ShowDialog(); if(crearSubsidio.correcto) { subsidio.Save(); AuditTrailService.Instance.SaveAuditData(uow); uow.CommitChanges(); RefreshGrid(); } else { subsidio.Reload(); RefreshGrid(); } RecargarColecciones(); }