Best technique for persisting program options
Posted on 2007-04-05
I'm using VS2005 C#. I have a custom data grid that holds many date values. If any date is within so many days from the current date, that cell is colored a specific color (such as yellow). If any date on the grid is earlier than the system date that cell is colored a specific color (such as red). The person using the program will determine their own color key,and their color key will be persisted with the data grid. If the program is started for the first time, and there are no open files, there still has to be a default color key that comes with the program.
My question is this: what is the best way to persist the default color key. Should it be in the registry or as a runtime class or some other method?