开发者

Showing changes across projects

I have two projects within my solution. What I want to do is when a property within Class1 (Project 1) changes I want to run a method wit开发者_运维问答hin Project 2.

How can this be done.


Use INotifyPropertyChanged. Make Class1 implement that interface and raise the PropertyChanged event when the property is changed. In Project 2, subscribe to this event and execute your method, when the event is raised.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜