static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); SpreadsheetGuiApplicationContext appContext = SpreadsheetGuiApplicationContext.GetAppContext(); appContext.RunForm(new Form1()); Application.Run(appContext); }
public void joinSpreadsheet(string server, int port, string filename, string password, bool isCreate) { if (_spreadsheet == null) { _spreadsheet = new Spreadsheet(server, port, filename, password, isCreate, isValid, normalize, "ps6"); _filename = filename; RegisterHandlers(); return; } // Something's already open. SpreadsheetGuiApplicationContext.GetAppContext().RunForm(new Form1(server, port, filename, password, isCreate)); }
public static SpreadsheetGuiApplicationContext GetAppContext() { return _appContext ?? (_appContext = new SpreadsheetGuiApplicationContext()); }
public static SpreadsheetGuiApplicationContext GetAppContext() { return(_appContext ?? (_appContext = new SpreadsheetGuiApplicationContext())); }