There's actually quite a lot wrong with that code, however...
1. Use properties as accessors to variables, you should not be accessing member variables directly outside of the scope in which they're defined
2. Define the property with the appropriate access modifier to scope it's accessibility. i.e., private, protected, internal, public etc.
Hopefully that'll get you going, if not Google
c# access modifier[
^] for more information