I am creating a program that interacts with a game and I want it to do the following:
- Get a list of messages from the admins.
- Let them display how often it is to be displayed
Simple enough right?
I’m not asking for code, just some ideas on how to handle the message and to handle the timing of each message?
Should I use a timer and keep the messages in memory?
I plan on storing this information in an xml file.
My question is more how should I handle displaying the messages on the given times efficiently?
Any suggestions?
I would use DispatcherTimer to achieve that.
DispatcherTimerruns on the UI/Dispatcher thread and not on thread pool thread, another reason to use it when you are doing UI operations with timer. Also one can set the priority of the dispatcher thread.