Пример #1
0
 private void sheetHolderSelected(Object sender, TabControlEventArgs e)
 {
     if (SelectedSheet != null)
     {
         precedentsDepth = dependentsDepth = 0;
         SelectedSheet.Reshow();
     }
 }
Пример #2
0
 // Set or remove (message=null) cell error mark
 public void SetCyclicError(String message)
 {
     if (Workbook.Cyclic != null)
     {
         FullCellAddr culprit = Workbook.Cyclic.culprit;
         sheetHolder.SelectTab(culprit.sheet.Name);
         SelectedSheet.SetCellErrorText(culprit.ca, message);
     }
 }
Пример #3
0
 // Paste copied or cut cells, or text
 private void pasteToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedSheet?.Paste();
 }
Пример #4
0
 // Insert row
 private void rowToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedSheet?.InsertRows(1);
 }
Пример #5
0
 // Insert column
 private void columnToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedSheet?.InsertColumns(1);
 }
Пример #6
0
 // Copy cell
 private void copyToolStripMenuItem_Click(object sender, EventArgs e)
 {
     SelectedSheet?.Copy();
 }
Пример #7
0
 private void Reshow(long?elapsed)
 {
     SelectedSheet?.Reshow();
     SetStatusLine(elapsed);
 }