class ApplicationRunner
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[MTAThread]
static void Main()
{
IFacade facade = ApplicationFacade.getInstance();
facade.startup(new Form1());
}
}
class ApplicationFacade : Facade, IFacade
{
...
public override void startup(object app)
{
notifyObservers(ApplicationFacade.APP_STARTUP, app);
Application.Run(app as Form);
}
}
just wondered what other peoples opinions are? Is there really a need to have an ApplicationRunner class? or just put the main method in the ApplicationFacade? Where do you recommend putting Application.Run (the built in .NET thing) in the facade or startup command? What are the Java guys doing?
[Edit: oops forgot some parts]