Moose Pickard

Moose Pickard

  • NA
  • 64
  • 70.5k

Where should I put my top level code?

Oct 3 2010 6:43 AM
Hi

I'v got with my program this far to start using top level code.
If you look at my scheme you can see the top level is program:

I need to know where should I put the exchangeCar, login, logout method.
I tried to put them in program.cs, but it gives me "cannot declare instance members in static class" error
I tried to put it in the form.cs but this gives me some inconsistent accessibility error.

I want to know where should I put the methods? Program.cs, Form.cs or create another superclass?

Thank you



Answers (12)