Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. MDI problem...

MDI problem...

Scheduled Pinned Locked Moved C#
data-structuresquestionhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Aint
    wrote on last edited by
    #1

    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.

    P 1 Reply Last reply
    0
    • A Aint

      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.

      P Offline
      P Offline
      Pete OHanlon
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups