C# Object-Oriented Paradigm - Doubts

Apr 29 2008 8:44 PM

Hello folks :)

As you see, I'm new at this forum as well as in C#.
I build a simple program using M$ Visual Studio, and I've got some problems concerning classes. I have been always working with C++, where global variables used to exist.

I have created three files (.cs) which contain the following classes: Item and List. The program is just going to sort a list containing certain items. Each class has its properties, but the List class has one or many items (Item class).

My application has two forms. My main problem is that I cannot access an instance of the List class from all my forms or any other part of the program. A friend of mine told me that I should review my object-oriented concepts, but I tried it a lot of times :(

How can I solve that? Can somebody help me?

Sorry for my bad-english :P


Answers (1)