Ejemplo n.º 1
0
 /// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static PS6ApplicationContext getAppContext()
 {
     if (appContext == null)
     {
         appContext = new PS6ApplicationContext();
     }
     return(appContext);
 }
Ejemplo n.º 2
0
        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);
        }