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

            SpreadsheetApplicationContext appContext = SpreadsheetApplicationContext.getAppContext();

            appContext.RunForm(new Form1());
            Application.Run(appContext);
        }
예제 #4
0
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            //Application.SetCompatibleTextRenderingDefault(false);

            // Start an application context and run one form inside it
            SpreadsheetApplicationContext appContext = SpreadsheetApplicationContext.getAppContext();

            if (args.Length == 0)
            {
                appContext.RunForm(ConnectForm);
                appContext.RunForm(MainForm);
                Application.Run(appContext);
            }
        }