Beispiel #1
0
        private void popupWindowShowActionTrnsfrr_Execute(object sender, PopupWindowShowActionExecuteEventArgs e)
        {
            Transferencia obj = e.PopupWindowViewCurrentObject as Transferencia;

            if (View != null)
            {
                NegocioBancos.GrabaTransfer(obj);
                View.ObjectSpace.CommitChanges();
            }
        }
Beispiel #2
0
        private void simpleActionAltCnta_Execute(object sender, SimpleActionExecuteEventArgs e)
        {
            Bancaria cuenta = View.CurrentObject as Bancaria;

            if (cuenta != null)
            {
                NegocioBancos.Activa(cuenta);

                View.ObjectSpace.CommitChanges();
            }
        }
Beispiel #3
0
        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);
                }
            }
        }