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

            CommentGeneratorApplicationContext appContext = CommentGeneratorApplicationContext.getAppContext();

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