You can store all the x and y pairs as a
You can then use the GDI Polyline
] to draw the entire graph in one shot.
If you have multiple lines to be drawn, you can use the PolyPolyline
If you can use GDI+, you the Graphics::DrawPolygon