/// <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); } }
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); }
/// <summary> /// New. /// </summary> public void OpenNew() { SpreadsheetGUIApplicationContext.GetContext().RunNew(); }