mardi 17 février 2015

Design Pattern To save MFC Dialog Controls States

I wrote GUI application that is written in MFC. The application have different dialog boxes. Each dialog boxes have default options, but user can come and select different options based on their need. I would like to save all the options selected by the user to a file so that when we run my application next time, i load those options was chosen by the user last time instead of default options. What is the best design pattern to do this? Right now, i have a SaveIO and LoadIO classes that interact with all the Dialog classes. I am not sure if this is the best way to do it as every time i add another dialog, i have to update the SaveIO and LoadIO classes.


Regards


Aucun commentaire:

Enregistrer un commentaire