复合应用程序块中的回调

时间:2010-06-21 10:00:31

标签: .net events callback cab

下面的代码说我无法从void转换为bool,没关系但是如何在CAB中为触发事件定义回调?

internal bool IsÖrtlichkeitFocused()
    {
      return this.WorkItem.EventTopics[EventTopicNames.IsOertlichkeitFocusChanged].Fire(this, new EventArgs<bool?>(null), this.WorkItem, PublicationScope.WorkItem);             
    }

1 个答案:

答案 0 :(得分:0)

试试这个         [EventSubscription(EventTopicNames.IsOertlichkeitFocusChanged,ThreadOption.WorkItem)]         publicvoidIsÖrtlichkeitFocusedEventHandler(object sender,EventArgs e) { //做一点事 }