下面的代码说我无法从void转换为bool,没关系但是如何在CAB中为触发事件定义回调?
internal bool IsÖrtlichkeitFocused()
{
return this.WorkItem.EventTopics[EventTopicNames.IsOertlichkeitFocusChanged].Fire(this, new EventArgs<bool?>(null), this.WorkItem, PublicationScope.WorkItem);
}
答案 0 :(得分:0)
试试这个 [EventSubscription(EventTopicNames.IsOertlichkeitFocusChanged,ThreadOption.WorkItem)] publicvoidIsÖrtlichkeitFocusedEventHandler(object sender,EventArgs e) { //做一点事 }