Anonymous
12-12-2004, 06:23 AM
Just found this and thought I would start upa thread about a UI I am working on.
My app is based on the MMC and Reflector. I want the Intrerface based esign of Reflector with the all-purpose abilities of the MMC. My first question is about the use of ApplicationContext in the Main method versus Application.Run(new Form)
What are peoples thoughts on something like this.
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.DoEvents();
MyContext context = MyContext.Instance;
Application.Run(context);
}
public class MyContext : ApplicationContext {
private Context () : base(){
_console = new MyForm();
_console.Closed +=new EventHandler(OnFormClosed);
formCount++;
_console.Show();
}
}
In this context is where I would add all of my IApplicationContext stuff.
Any thoughts?
My app is based on the MMC and Reflector. I want the Intrerface based esign of Reflector with the all-purpose abilities of the MMC. My first question is about the use of ApplicationContext in the Main method versus Application.Run(new Form)
What are peoples thoughts on something like this.
[STAThread]
static void Main() {
Application.EnableVisualStyles();
Application.DoEvents();
MyContext context = MyContext.Instance;
Application.Run(context);
}
public class MyContext : ApplicationContext {
private Context () : base(){
_console = new MyForm();
_console.Closed +=new EventHandler(OnFormClosed);
formCount++;
_console.Show();
}
}
In this context is where I would add all of my IApplicationContext stuff.
Any thoughts?