示例#1
0
 /// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static CommentGeneratorApplicationContext getAppContext()
 {
     if (appContext == null)
     {
         appContext = new CommentGeneratorApplicationContext();
     }
     return(appContext);
 }
示例#2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            CommentGeneratorApplicationContext appContext = CommentGeneratorApplicationContext.getAppContext();

            appContext.RunForm(new CommentGeneratorGUI());
            Application.Run(appContext);
        }