MDI problem...
-
Hi... I created a MDI application and the parent form is trying to read a binary file and stored it in public 2D array, aiData[10240, 12]. I have a child form which will draw a graph from the data that is stored earlier on and I associated this draw method with the Paint() of the child form. The problem is when I tried to open a another binary file, the old graph is overwritten by the new data. So how can I keep the old graph while having the new graph displayed in another child form? thanks.
-
Hi... I created a MDI application and the parent form is trying to read a binary file and stored it in public 2D array, aiData[10240, 12]. I have a child form which will draw a graph from the data that is stored earlier on and I associated this draw method with the Paint() of the child form. The problem is when I tried to open a another binary file, the old graph is overwritten by the new data. So how can I keep the old graph while having the new graph displayed in another child form? thanks.
You would be better off separating the data out as it seems to be entwined with the presentation logic here. Take a look at the MVC pattern to see how this could help you.
Deja View - the feeling that you've seen this post before.