App.Config and EventBroker subscription config

Topics: CAB & Smart Client Software Factory
Jul 4, 2006 at 2:20 PM
originally posted by: Hoffmaina

Can event subscribers be configured in the app.config file? If so how? I am trying to use the Outlook Bar provided by Matias Woloski ( and I figure the Workspace is looking in configuration for an event subscriber?

Thanks in advance for the help!
Jul 6, 2006 at 10:43 AM
originally posted by: matiaswoloski

The OutlookBar is not related to App.config. Why do you think that?

The Event Publication feature of the OutlookBar workspace is used like this:

OutlookSmartPartInfo ospi = new OutlookSmartPartInfo();
ospi.EventTopicName = "OnMailPressed";
ospi.Title = "Mail";
ospi.Icon = Resources.MailIcon;
ws.Show( myView, ospi );

The workspace will associate the event topic with the click of the Mail button. So in your Mail ModuleController you could have

public void OnMailPressed(object sender, EventArgs e) {
// do something because the Mail button was pressed