/// <summary> /// Returns the one DemoApplicationContext. /// </summary> public static FileAnalysisApplicationContext GetContext() { if (context == null) { context = new FileAnalysisApplicationContext(); } return(context); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var context = FileAnalysisApplicationContext.GetContext(); Spreadsheet sheet = new Spreadsheet(); FileAnalysisApplicationContext.GetContext().RunNew(sheet); Application.Run(context); }
/// <summary> /// Opens a new Analysis window. /// </summary> public void OpenNew(Spreadsheet sheet) { //Spreadsheet sheet = new Spreadsheet(); FileAnalysisApplicationContext.GetContext().RunNew(sheet); }