...
No Format |
---|
DeltaShell.Plugins.DemoPlugin/ Domain/ Animal.cs Animal.hbm.xml AnimalExtensions.cs Bear.cs BearProperties.cs Bear.hbm.xml Lizard.cs Lizard.hbm.xml Models/ ForestLifeModel.cs Forms/ AnimalControl.cs AnimalControl.Designer.cs AnimalControl.resx ForestLifeModelView.cs ForestLifeModelView.Designer.cs ForestLifeModelView.resx Uml/ Animals.cd DemoPlugin.cd DemoPlugin.cs DemoPluginPropertyProvider.cs DemoPluginDataProvider.cs DemoPluginViewProvider.cs |
Views
When view is created for a specific data object, this object is injected via the view's Data property. View checks if data is correct and subscribes to the object's events.
If view is closed by user (in which case Delta Shell removes it from its ViewsCollection), Delta Shell sets the Data property to null. In this case View is responsible for unsubscribing from events, and delegating this responsibility to the objects it contains.