/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static SpreadsheetApplicationContext getAppContext() { if (appContext == null) { appContext = new SpreadsheetApplicationContext(); } return appContext; }
/// <summary> /// Returns the one SpreadsheetApplicationContext. /// </summary> public static SpreadsheetApplicationContext getAppContext() { if (appContext == null) { appContext = new SpreadsheetApplicationContext(); } return(appContext); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SpreadsheetApplicationContext appContext = SpreadsheetApplicationContext.getAppContext(); appContext.RunForm(new Form1()); Application.Run(appContext); }
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); } }