/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static CommentGeneratorApplicationContext getAppContext() { if (appContext == null) { appContext = new CommentGeneratorApplicationContext(); } return(appContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); CommentGeneratorApplicationContext appContext = CommentGeneratorApplicationContext.getAppContext(); appContext.RunForm(new CommentGeneratorGUI()); Application.Run(appContext); }