예제 #1
0
 /// <summary>
 /// Returns the one DemoApplicationContext.
 /// </summary>
 public static SpreadsheetContext GetContext()
 {
     if (context == null)
     {
         context = new SpreadsheetContext();
     }
     return(context);
 }
예제 #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);
        }
예제 #3
0
 /// <summary>
 /// Opens new window
 /// </summary>
 public void OpenNew()
 {
     SpreadsheetContext.GetContext().RunNew();
 }