how to implement undo/redo operation without major changes in program

前端 未结 3 1051
青春惊慌失措
青春惊慌失措 2020-12-30 09:23

Hi I\'m about to add new functionality to application which I\'m currently writting. I need to write a undo/redo fnctionality. However 90% of our application is ready and I

3条回答
  •  情书的邮戳
    2020-12-30 10:01

    There aren't many details here. However, Undo/Redo functionality is typically handled via some variation of the Command Pattern. Depending on your architecture, this could be a simple reworking of your basic functionality into "commands", or a major overhaul.

提交回复
热议问题