public void SetMainMenu(IMainMenuInstance mainMenu) { var listener = CreateMainMenuEventListener(mainMenu); listener.Subscribe(); B1EventFilterManager.Include(BoEventTypes.et_MENU_CLICK, @"ALL_FORMS"); }
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); }
/// <summary> /// Starts up the events managing system. /// </summary> public void Initialize() { B1EventFilterManager.Initialize(application); SetApplicationEventListener(); StartEventDispatchers(); AddSystemFormLoadListeners(); AddEventSinks(); SetMainMenu(); }
/// <summary> /// Starts up the events managing system. /// </summary> public void Initialize(Application app, IApplicationEventsHandler handler) { application = app; assembly = GetAssembly(handler); assemblyTypes = GetAssemblyTypes(assembly); B1EventFilterManager.Initialize(app); CreateDispatchers(handler); StartEventDispatchers(); AddSystemFormLoadListeners(); AddEventSinks(); }
private void OnHandlerAdded(object sender, HandlerAddedEventArgs e) { B1EventFilterManager.Include(e.EventType, e.FormType); }