Include Page | ||||
---|---|---|---|---|
|
Wiki Markup |
---|
scrollbar |
Currently events are handled very bad since everything is subscribed to everything (Project explorer to Model.DataItems.Added/Removed, Folder.DataItems.Added/Removed, etc.). As result it makes things very difficult to manage when objects are added / removed. Especially when these subsciption happen in external plugins (HABITAT, Verkenner...).
...
Allowed Subscription of events
Wiki Markup |
---|
{flowchart}"SomeHighLevelType" -> "IEventedList<SomeType>" -> "SomeType"{flowchart} |
Wiki Markup |
---|
{flowchart}
"Gui Form containing instance of SomeType" -> "SomeType"
{flowchart} |
...
Anti-Pattern
...
In general the rule is: when you need to Subscribe / Unsubscribe frequently to events - you have to review your design of how event subscription is organized.
...