I have a winform containing controls that are updated when a new instance of my business logic class is instantiated. And with the use of a timer, fields in my class (and their associative labels) are updated every few seconds.
This is all working fine, except for one control - a rich text box acting as a log of all the activity.
The problem is this: though I want all the other controls to be refreshed when a new class is instantiated, I don't want the log to be refreshed. I want it to store all the previous activity (from the current session; it doesn't need to persist between application lifetimes.)
I can't store the log data in a class instance obviously, so what method should I be using? Is it worth creating a Singleton for this?
And how should I go about adding an entry to the log?