Ejemplo n.º 1
0
 protected virtual void OnRightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
 {
     BubbleEvent = true;
     if (eventInfo.BeforeAction)
     {
         _menuContextArgs = new B1MenuClickArgs()
         {
             FormID = eventInfo.FormUID,
             ItemID = eventInfo.ItemUID,
             ColID  = eventInfo.ColUID,
             Row    = eventInfo.Row,
             Cancel = false
         };
         _contextMenu.OnRightClickBefore(eventInfo);
     }
     else
     {
         try {
             _contextMenu.OnRightClickAfter(eventInfo);
         }
         finally {
             _menuContextArgs = null;
         }
     }
 }
Ejemplo n.º 2
0
        //private void SBOApplication_FormDataEvent(ref SAPbouiCOM.BusinessObjectInfo BusinessObjectInfo, out bool BubbleEvent)
        //{
        //    SBOEventHandler oSBOEventHandler = new SBOEventHandler(oSBOApplication, oSBOCompany);
        //    oSBOEventHandler.HandleFormDataEvent(ref BusinessObjectInfo, out BubbleEvent);
        //}

        private void SBOApplication_RightClickEvent(ref SAPbouiCOM.ContextMenuInfo eventInfo, out bool BubbleEvent)
        {
            SBOEventHandler oSBOEventHandler = new SBOEventHandler(oSBOApplication, oSBOCompany);

            oSBOEventHandler.HandleRightClickEvent(ref eventInfo, out BubbleEvent);
        }