This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//---><8--------------------------- UI loads viewmodels and generates commands ---- | |
UI.Viewmodel = ViewModelStore.Query(UI.SomeParameters); | |
UI.HandleInput = GeneratedCommand => CommandStore.Add(GeneratedCommand); | |
//---><8--------------------------- Commands to events ----------------------------------------- | |
// This uses an iterator because a command should only be handled once | |
while(CommandStore.HasCommands) |