Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make listeners be added through a single call, or automatically #1025

Open
alexandrunechita-popcore opened this issue Sep 13, 2022 · 0 comments

Comments

@alexandrunechita-popcore

Is your feature request related to a problem? Please describe.
Every time a listener is added to a View, user error might neglect to do _linkedEntity.AddMyListener(this) inside the View.
Changing the Component's Event will also add/remove/modify the listener interfaces requiring the dev to updated the AddListener area.

Describe the solution you'd like
Either:

A) _linkedEntity.AddListeners(this) and have it detect what listener interfaces belong to "this" and make the connections.
B) Have it automatically happen without the dev ever think about it.

For backwards compatibility and user error, if the dev adds the listeners again or triggers _linkedEntity.AddListeners(this) manually, it should be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

1 participant