private void popupWindowShowActionTrnsfrr_Execute(object sender, PopupWindowShowActionExecuteEventArgs e) { Transferencia obj = e.PopupWindowViewCurrentObject as Transferencia; if (View != null) { NegocioBancos.GrabaTransfer(obj); View.ObjectSpace.CommitChanges(); } }
private void simpleActionAltCnta_Execute(object sender, SimpleActionExecuteEventArgs e) { Bancaria cuenta = View.CurrentObject as Bancaria; if (cuenta != null) { NegocioBancos.Activa(cuenta); View.ObjectSpace.CommitChanges(); } }
void ObjectSpace_Committing(object sender, System.ComponentModel.CancelEventArgs e) { if (View != null) { ConceptoB obj = View.CurrentObject as ConceptoB; if (obj != null) { e.Cancel = !NegocioBancos.GrabaConcepto(obj); } } }