I'm refactoring a program containing a lot of forms created dynamically from run-time informations.
To reduce the level of complexity of the system, I thought to write individual code files for each of these forms. Since the forms are many, I'm thinking for a way to automate the process of creation of the forms source code files from data collected at run-time.
E.g. if i have a run-time instance of a form called EditPeople, I want to create the source code of EditPeople.designer.cs, so that then I can edit the form in windows form designer.
Do you know if there is some framework or tool that can simplify this task?