I'm working with the Passive View pattern. The user clicks a new account button. The view delegates responsibility to the presenter using parameterless method calls.
The problem is there are multiple account types so the user needs to pick which one they want to create. How do I resolve this?
My solution for this was different than I expected. I changed the button the user clicked to a DropDownMenuButton. Then I passed a string list of account types to the view which populates the drop down menu. I also created an event handler for the drop down menu item click event, which updates a public property with the name of the menu item then delegates everything else to the presenter.
The presenter just has to get the menu item name from the exposed property and then lookup the account type in a private dictionary of account types using the account type name as the key.