/// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static SpreadsheetContext GetContext()
 {
     if (context == null)
     {
         context = new SpreadsheetContext();
     }
     return(context);
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            // Get the application context and run one form inside it
            var context = SpreadsheetContext.GetContext();

            SpreadsheetContext.GetContext().RunNew();
            Application.Run(context);
        }
 /// <summary>
 /// Opens new window
 /// </summary>
 public void OpenNew()
 {
     SpreadsheetContext.GetContext().RunNew();
 }