I made a .NET Windows form that allows users to view a particular document and sign it.
I want to make it re-usable for future applications.
The challenges are:
- The text to be signed requires parameters.
- Before the user signs it, the text is just a query - not saved anywhere
- When the user signs it, the text he/she signed must be stored and "frozen". In future executions of the query, the data may change
- Different documents could have different data sources and different parameters. But they all should be saved in the same table when signed
I can only think of making a new class for every document and inheriting from the same class with the same base functionality. Is there a better way to do this? Based on a parameter, can I load a different data source and template?