Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
139
controls comparability issue with CAB
posted

 Hi there

It seems that ButtonTool is missing a eventhandler for the AddPublication function to successfully registed the event.

        private void AddApplicaitonCloseButton()
        {
            ButtonTool btn = new ButtonTool("ApplicationClose");
            btn.SharedProps.Caption = "&Close";
            WorkItem.UIExtensionSites[UIExtensionSiteNames.MainApplicationMenu].Add<ButtonTool>(btn);

->         WorkItem.EventTopics[EventTopicNames.ApplicationCloseEvent].AddPublication(btn, "ToolClick", WorkItem, PublicationScope.Global);
        }

Can someone please tell me which eventhandler is missing or incomparable ? Thanks