0

below code says I can not convert from void to bool, thats ok but how can I define a callback for a fired event in CAB ?

internal bool IsÖrtlichkeitFocused()
    {
      return this.WorkItem.EventTopics[EventTopicNames.IsOertlichkeitFocusChanged].Fire(this, new EventArgs<bool?>(null), this.WorkItem, PublicationScope.WorkItem);             
    }
skaffman
  • 398,947
  • 96
  • 818
  • 769
msfanboy
  • 5,273
  • 13
  • 69
  • 120

1 Answers1

0

try this [EventSubscription(EventTopicNames.IsOertlichkeitFocusChanged, ThreadOption.WorkItem)] public void IsÖrtlichkeitFocusedEventHandler(object sender, EventArgs e) { //do something }

fedotoves
  • 757
  • 6
  • 7
  • but I want to return a bool value to the IsÖrtlichkeitFocused() method, I do not see how I can do that with your code! – msfanboy Jun 21 '10 at 10:26