private void sheetHolderSelected(Object sender, TabControlEventArgs e) { if (SelectedSheet != null) { precedentsDepth = dependentsDepth = 0; SelectedSheet.Reshow(); } }
// 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); } }
// Paste copied or cut cells, or text private void pasteToolStripMenuItem_Click(object sender, EventArgs e) { SelectedSheet?.Paste(); }
// Insert row private void rowToolStripMenuItem_Click(object sender, EventArgs e) { SelectedSheet?.InsertRows(1); }
// Insert column private void columnToolStripMenuItem_Click(object sender, EventArgs e) { SelectedSheet?.InsertColumns(1); }
// Copy cell private void copyToolStripMenuItem_Click(object sender, EventArgs e) { SelectedSheet?.Copy(); }
private void Reshow(long?elapsed) { SelectedSheet?.Reshow(); SetStatusLine(elapsed); }