/// <summary> /// Inicializar las propiedades de los eventos. /// </summary> private void SetFilters() { _oFilters = new SAPbouiCOM.EventFilters(); _oFilters = new SAPbouiCOM.EventFilters(); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_MENU_CLICK); //_oFilter.AddEx("43520"); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_CLOSE); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_CLICK); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_MATRIX_LINK_PRESSED); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_RIGHT_CLICK); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_COMBO_SELECT); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_LOAD); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_RESIZE); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_UNLOAD); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_LOST_FOCUS); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_VALIDATE); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_CHOOSE_FROM_LIST); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORMAT_SEARCH_COMPLETED); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_GOT_FOCUS); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_DOUBLE_CLICK); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_KEY_DOWN); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_FORM_ACTIVATE); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_GRID_SORT); _oFilter = _oFilters.Add(SAPbouiCOM.BoEventTypes.et_PICKER_CLICKED); _oFilter = _oFilters.Add((SAPbouiCOM.BoEventTypes)SAPbouiCOM.BoAppEventTypes.aet_ShutDown); _oFilter = _oFilters.Add((SAPbouiCOM.BoEventTypes)SAPbouiCOM.BoAppEventTypes.aet_CompanyChanged); //_oFilter.AddEx("frmClasfTG"); SBO_Application.SetFilter(_oFilters); }
private void SetFilters() { oEventFilters = new EventFilters(); oEventFilter = oEventFilters.Add(BoEventTypes.et_CLICK); oEventFilter.AddEx("139"); // pedido de venda oEventFilter.AddEx("142"); //pedido de compra oEventFilter = oEventFilters.Add(BoEventTypes.et_KEY_DOWN); oEventFilter.AddEx("139"); oEventFilter = oEventFilters.Add(BoEventTypes.et_ITEM_PRESSED); oEventFilter.AddEx("133"); oApplication.SetFilter(oEventFilters); }