internal void createSpreadsheet(string docID) { spreadsheets[docID] = new Spreadsheet(isValid, normalize, "ps6"); docs[docID] = new SpreadSheetForm(true, temp_filename, docID, this); init_form.CreateSpreadsheet(docs[docID]); docs[docID].EnableRename(); }
internal void CreateSpreadsheet(SpreadSheetForm spreadSheetForm) { if (this.InvokeRequired) { ssDelegate n = new ssDelegate(CreateSpreadsheet); this.Invoke(n, spreadSheetForm); return; } SSApplicationContext.getAppContext().RunForm(spreadSheetForm); }
/// <summary> /// When the user clicks ok we need to /// 1. load in the new SSmodel /// 2. display the contents/values/ what have you contained within the model. /// 3. handle any exceptions this may cause /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void openFileDialog1_FileOk(object sender, CancelEventArgs e) { try { SpreadSheetForm leform = new SpreadSheetForm(openFileDialog1.FileName); SpreadsheetGUI.SSContextSingleton.getContext().RunForm(leform); open_and_paint(); } catch (Exception ex) { MessageBox.Show("Error opening file\n" + ex.Message); } }
internal void ChangeFilenameBack(SpreadSheetForm spreadSheetForm) { filename = prevFilename; this.Text = filename; MessageBox.Show("The file name " + prevFilename + " was invalid. The change was not made."); }
public SplashForm(SpreadSheetForm _view) { InitializeComponent(); view = _view; }
public void SetInitSpreadsheetForm(SpreadSheetForm s) { init_form = s; }