Exemple #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;
         }
     }
 }
Exemple #2
0
 protected virtual void OnContextMenuClick(object sender, ref B1MenuClickArgs e)
 {
 }