Friday, 16 August 2013

Class that can be used through out application

Class that can be used through out application

Noob question here, but I'm really stuck!
I'm trying to establish a class that can be used though out my application
called UpdateDatabase. The UpdateDatabase.cs file is stored in my
AppName.Helpersnamespace and I've declared using AppName.Helpers
everywhere I want to use UpdateDatabase.
I'm having trouble calling UpdateDatabase. I've set it as a public class
UpdateDatabase. Is that the right thing to do?
Within UpdateDatabase I have several other classes UpdateCustomers,
UpdateEmployees and UpdateProducts. I would like for a user to be able to
click a button, have that call UpdateDatabase and then begin executing the
three "sub classes" in UpdateDatabase.
Everywhere that I call UpdateDatabase I get an error saying
AppName.Helpers.UpdateDatabase' is a 'type' but is used like a 'variable

No comments:

Post a Comment