Exemplo n.º 1
0
        public void SetMainMenu(IMainMenuInstance mainMenu)
        {
            var listener = CreateMainMenuEventListener(mainMenu);

            listener.Subscribe();
            B1EventFilterManager.Include(BoEventTypes.et_MENU_CLICK, @"ALL_FORMS");
        }
Exemplo n.º 2
0
        private void AddSystemFormLoadListener(Type classType)
        {
            var attribute = GetAttribute <B1SystemFormTypeAttribute>(classType);
            var formType  = attribute.FormType;

            var loadListener = new SystemFormLoadHandler(application, formType, classType);

            B1ItemEventDispatcher.AddListener(loadListener);
            B1EventFilterManager.Include(BoEventTypes.et_FORM_LOAD, formType);
        }
Exemplo n.º 3
0
 private void OnHandlerAdded(object sender, HandlerAddedEventArgs e)
 {
     B1EventFilterManager.Include(e.EventType, e.FormType);
 }