2D Linked List
I'm writing a program that implements a 2D Linked List. When the user clicks, the program gathers 10 items and stores them into a 1D Linked List. The form then resets and the user can create another 1D Linked List over and over again. I want to connect all the lists into a 2D Linked List called 'table'. The problem I'm having is where to create my one 'table'.
If I put it in the Button Click function, it obviously creates a new table each time the button is clicked which is no good. I need a way to make it global to the program so that each time the user clicks, a new list is made and then added to the one global table. C# of course does not permit globals. Ideas??
|