Sharing Array of Objects Among Forms

  • Thread starter Thread starter Liath Macha
  • Start date Start date
L

Liath Macha

I'm pretty new to C# & OOP as you may soon see.

I'm putting together a multi-form application. In the first form
("Start") there is the class "Start" and the class "figure". within
"Start" an array "figures" of objects of class "figure" is created and
properties set.

I would like for this array "figures" with values as set by "Start: to
be available to other forms in the application.

Thus far, if the other forms all inherit "figure" the constructor is
fired each time. If I pass the array "figures" to other classes, the
property and method names are lost.

Your insight into this issue would be greatly appreciated.

Thanks
Liath Macha
 
Perhaps you could create a static configuration class that is available to
all of your forms?
 
Back
Top