private void CalculateCell(ref bool isChangedCellValue, ICell cell) { if (cell == null) { throw new ArgumentNullException(nameof(cell)); } if (!cell.IsCalculated && cell.Type != CellTypeEnum.Error) { string oldCellValue = cell.Value; try { Converter.ConvertCellReferenceToValue(this, cell); cell.CheckReferenceToItSelf(); CalculateNumbers(cell); } catch (Exception e) { cell.SetError(e.Message); } if (!isChangedCellValue) { isChangedCellValue = IsChangedValue(cell.Value, oldCellValue); } } }
private void CalculateCell(ref bool isChangedCellValue, ICell cell) { if (cell == null) throw new ArgumentNullException(nameof(cell)); if (!cell.IsCalculated && cell.Type != CellTypeEnum.Error) { string oldCellValue = cell.Value; try { Converter.ConvertCellReferenceToValue(this, cell); cell.CheckReferenceToItSelf(); CalculateNumbers(cell); } catch (Exception e) { cell.SetError(e.Message); } if (!isChangedCellValue) { isChangedCellValue = IsChangedValue(cell.Value, oldCellValue); } } }