I have a LocationsList class that contains some instance of a Location class.
Each Location has a tobeshown property. When tobeshown is setted, an event ShownChange is raised.
Another class Work contains a property Locations as LocationList and I would like a LocationSetted property that has to be true if at least one location in LocationList has the tobeshown=true
How to set LocationSetted in the Work class? I have thought about to pass to the LocationList class a shared event ShownChange from the Location class, but then it is raised as many times as the istances of Work opened
I hope this is a comprehensible question
Each Location has a tobeshown property. When tobeshown is setted, an event ShownChange is raised.
Another class Work contains a property Locations as LocationList and I would like a LocationSetted property that has to be true if at least one location in LocationList has the tobeshown=true
How to set LocationSetted in the Work class? I have thought about to pass to the LocationList class a shared event ShownChange from the Location class, but then it is raised as many times as the istances of Work opened
I hope this is a comprehensible question