/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static PS6ApplicationContext getAppContext() { if (appContext == null) { appContext = new PS6ApplicationContext(); } return(appContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Start an application context and run one form inside it PS6ApplicationContext appContext = PS6ApplicationContext.getAppContext(); appContext.RunForm(new Form1()); Application.Run(appContext); }