Esempio n. 1
0
 /// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static FileAnalysisApplicationContext GetContext()
 {
     if (context == null)
     {
         context = new FileAnalysisApplicationContext();
     }
     return(context);
 }
Esempio n. 2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var         context = FileAnalysisApplicationContext.GetContext();
            Spreadsheet sheet   = new Spreadsheet();

            FileAnalysisApplicationContext.GetContext().RunNew(sheet);
            Application.Run(context);
        }
Esempio n. 3
0
 /// <summary>
 /// Opens a new Analysis window.
 /// </summary>
 public void OpenNew(Spreadsheet sheet)
 {
     //Spreadsheet sheet = new Spreadsheet();
     FileAnalysisApplicationContext.GetContext().RunNew(sheet);
 }