Let's say you need to implement the following feature. I have a GUI application with my business logic. The model is rather nontrivial, and I want to implement the so-called debagging. In other words, I want to track the model change step by step (for example, by pressing the F10 key). I would like to ask, what is the most adequate solution to this problem? At the moment, I see two potential solutions:
- Taking the work with the model to a separate thread (when the debug mode is on, after each notification of a change, the flow with the model stops, so that the gui can be updated, by pressing f10 - the stream wakes up)
- Implementation based on the creation of another internal message loop (on each notification of a model change, we create a new cycle using Dispatcher.PushFrame, and disable the ability to change the model)
I do not want to fence the bike, can there already exist proven approaches?
принципиальноdifferent from the final one. That is, simply return the transition state in this way filling the list (the specific data type will depend on whether you give the opportunity to go back a step or only forward) - user227049состояния. It would be easier to explain with an example. Do you have the opportunity to describe the task more specifically? - user227049