Example #1
0
        /// <summary>
        /// Open.
        /// </summary>
        public void DoOpen()
        {
            OpenFileDialog open = new OpenFileDialog();

            open.Filter           = "spreadsheet files (*.ss)|*.ss|All files (*.*)|*.*";
            open.RestoreDirectory = true;
            if (open.ShowDialog() == DialogResult.OK)
            {
                SpreadsheetGUIApplicationContext.GetContext().RunNew(open.FileName);
            }
        }
Example #2
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

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

            context.RunNew();
            Application.Run(context);
        }
Example #3
0
 /// <summary>
 /// New.
 /// </summary>
 public void OpenNew()
 {
     SpreadsheetGUIApplicationContext.GetContext().RunNew();
 }