/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static SpreadsheetWindowHandler getAppContext() { if (appContext == null) { appContext = new SpreadsheetWindowHandler(); } return(appContext); }
/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static SpreadsheetWindowHandler getAppContext() { if (appContext == null) { appContext = new SpreadsheetWindowHandler(); } return appContext; }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Start an application context and run one form inside it SpreadsheetWindowHandler appContext = SpreadsheetWindowHandler.getAppContext(); if (appContext.RunForm(new GUI())) { Application.Run(appContext); } }