Exemple #1
0
 public static SpreadsheetWindowContext GetContext()
 {
     if (context == null)
     {
         context = new SpreadsheetWindowContext();
     }
     return(context);
 }
Exemple #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            var context = SpreadsheetWindowContext.GetContext();

            SpreadsheetWindowContext.GetContext().RunNew();
            Application.Run(context);
        }
Exemple #3
0
 /// <summary>
 /// Opens a file with the passed in filename.
 /// </summary>
 /// <param name="filename">The name of the file to be opened</param>
 public void OpenNew(string filename)
 {
     SpreadsheetWindowContext.GetContext().RunNew(filename);
 }
Exemple #4
0
 /// <summary>
 /// Creates a new, independent spreadsheet window.
 /// </summary>
 public void OpenNew()
 {
     SpreadsheetWindowContext.GetContext().RunNew();
 }