Пример #1
0
 public FrmCrearSubsidio(Subsidio subsidio, XPCollection xpcSubsidio, UnitOfWork uow)
     : this()
 {
     this.Subsidio = subsidio;
     this.uow = uow;
     this.xpcSubsidio = xpcSubsidio;
 }
Пример #2
0
 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();
 }