Пример #1
0
 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();
 }
Пример #2
0
 internal void CreateSpreadsheet(SpreadSheetForm spreadSheetForm)
 {
     if (this.InvokeRequired)
     {
         ssDelegate n = new ssDelegate(CreateSpreadsheet);
         this.Invoke(n, spreadSheetForm);
         return;
     }
     SSApplicationContext.getAppContext().RunForm(spreadSheetForm);
 }
Пример #3
0
 /// <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);
     }
 }
Пример #4
0
 internal void ChangeFilenameBack(SpreadSheetForm spreadSheetForm)
 {
     filename  = prevFilename;
     this.Text = filename;
     MessageBox.Show("The file name " + prevFilename + " was invalid. The change was not made.");
 }
Пример #5
0
 public SplashForm(SpreadSheetForm _view)
 {
     InitializeComponent();
     view = _view;
 }
Пример #6
0
 /// <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);
     }
 }
Пример #7
0
 public void SetInitSpreadsheetForm(SpreadSheetForm s)
 {
     init_form = s;
 }