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.
精彩评论