static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            SpreadsheetGuiApplicationContext appContext = SpreadsheetGuiApplicationContext.GetAppContext();

            appContext.RunForm(new Form1());
            Application.Run(appContext);
        }
Ejemplo n.º 2
0
 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));
 }