I draw a drawing on a custom panel using GDI+. Somethink like:
Now, I can override 2 methods: OnPaint() and OnPaintBackground().
Say I draw the grid in background and the graph in OnPaint, or draw the texts in background and lines in Paint.
Is it more optimal to divide the work between Background and Paint or to draw everything in OnPaint?
PS.
By the way, is it possible Stopwatch
to determine it? I mean don't know when to start/stop it...