Exemple #1
0
        private void newDocumentForm(string path)
        {
            DocumentForm documentForm = new DocumentForm(this);

            documentForm.Show();
            if (path != null)
            {
                documentForm.loadDocument(path);
            }

            documentForm.extraCellTable.isInitialized = true;

            documentForm.extraCellTable.selectCell(1, 1);
            documentForm.extraCellTable.selectCell(0, 0);
        }
Exemple #2
0
 private void MDIUI_MdiChildActivate(object sender, EventArgs e)
 {
     if (ActiveMdiChild.GetType().IsAssignableFrom(typeof(DocumentForm)))
     {
         if (ActiveMdiChild != null && !ActiveMdiChild.IsDisposed)
         {
             activeDocument = ((DocumentForm)ActiveMdiChild);
             DataGridViewCell cell = activeDocument.extraCellTable.CurrentCell;
             formulaInput.Text = activeDocument.extraCellTable.ece.getCell(cell.ColumnIndex, cell.RowIndex).formula;
             setEditOptions(true);
         }
         else
         {
             setEditOptions(false);
             activeDocument    = null;
             addressInput.Text = "";
             formulaInput.Text = "";
         }
     }
 }
Exemple #3
0
        private void newDocumentForm(string path)
        {
            DocumentForm documentForm = new DocumentForm(this);
            documentForm.Show();
            if(path != null)
                documentForm.loadDocument(path);

            documentForm.extraCellTable.isInitialized = true;

            documentForm.extraCellTable.selectCell(1, 1);
            documentForm.extraCellTable.selectCell(0, 0);
        }
Exemple #4
0
 private void MDIUI_MdiChildActivate(object sender, EventArgs e)
 {
     if (ActiveMdiChild.GetType().IsAssignableFrom(typeof(DocumentForm)))
     {
         if (ActiveMdiChild != null && !ActiveMdiChild.IsDisposed)
         {
             activeDocument = ((DocumentForm)ActiveMdiChild);
             DataGridViewCell cell = activeDocument.extraCellTable.CurrentCell;
             formulaInput.Text = activeDocument.extraCellTable.ece.getCell(cell.ColumnIndex, cell.RowIndex).formula;
             setEditOptions(true);
         }
         else
         {
             setEditOptions(false);
             activeDocument = null;
             addressInput.Text = "";
             formulaInput.Text = "";
         }
     }
 }