Beispiel #1
0
        public static void CatchUdoEvent(ref UDOEvent pVal, out bool bubbleEvent)
        {
            bubbleEvent = true;
            try
            {
                switch (pVal.EventType)
                {
                case BoEventTypes.et_UDO_FORM_OPEN:
                    if (UdoFormOpen != null)
                    {
                        UdoFormOpen(ref pVal, ref bubbleEvent);
                    }
                    break;

                case BoEventTypes.et_UDO_FORM_BUILD:
                    if (UdoFormBuild != null)
                    {
                        UdoFormBuild(ref pVal, ref bubbleEvent);
                    }
                    break;
                }
            }
            catch (Exception ex)
            {
                B1Exception.throwException("Erro evento UDO:", ex);
            }
        }
 private void UdoForm_Open(ref UDOEvent pVal, ref bool bubbleevent)
 {
     if (this.formUid.Contains(pVal.ObjectKey))
     {
         oForm = B1AppDomain.Application.Forms.ActiveForm;
         UdoFormOpen(ref pVal, ref bubbleevent);
     }
 }
 internal void sapApp_UDOEvent(ref UDOEvent udoEventArgs, out bool BubbleEvent)
 {
     BubbleEvent = true;
     foreach (var e in udoEvents)
     {
         ((_IApplicationEvents_UDOEventEventHandler)e)(ref udoEventArgs, out BubbleEvent);
         if (!BubbleEvent)
         {
             break;
         }
     }
 }
 public virtual void UdoFormOpen(ref UDOEvent pVal, ref bool bubbleevent)
 {
 }
Beispiel #5
0
 public void SBO_Application_UDOEvent(UDOEvent udoEventArgs, SAPbobsCOM.Company sbo_company, ref Application sbo_application, out bool bBubbleEvent)
 {
     bBubbleEvent = true;
 }
Beispiel #6
0
 internal void sapApp_UDOEvent(ref UDOEvent udoEventArgs, out bool BubbleEvent)
 {
     BubbleEvent = true;
     foreach (var e in udoEvents)
     {
         ((_IApplicationEvents_UDOEventEventHandler)e)(ref udoEventArgs, out BubbleEvent);
         if (!BubbleEvent)
             break;
     }
 }