public void Save(SpreadCalcAxialManager src, int fromRow, int fromColumn, int toRow, int toColumn, int fromRowCount, int fromColumnCount, int toRowCount, int toColumnCount, Dictionary <CalcLocalIdentity, CalcExpression> formulas, bool offsetSelf, bool updataDependens) { CalcCalculationManager sourceMgr = (src == null) ? this.Manager : src.Manager; int sourceRowCount = (src == null) ? this.RowCount : src.RowCount; int sourceColumnCount = (src == null) ? this.ColumnCount : src.ColumnCount; FormulaClipboardHelper.Save(sourceMgr, this.Manager, null, sourceRowCount, sourceColumnCount, fromRow, fromColumn, toRow, toColumn, fromRowCount, fromColumnCount, toRowCount, toColumnCount, formulas, offsetSelf, updataDependens); }
public void Move(SpreadCalcAxialManager src, int fromRow, int fromColumn, int toRow, int toColumn, int rowCount, int columnCount) { CalcCalculationManager sourceMgr = (src == null) ? this.Manager : src.Manager; ChangingContext context = new ChangingContext(); Dictionary <CalcLocalIdentity, CalcExpression> formulas = this.GetFormulaIds(fromRow, fromColumn, rowCount, columnCount, sourceMgr, context, true); int sourceRowCount = (src == null) ? this.RowCount : src.RowCount; int sourceColumnCount = (src == null) ? this.ColumnCount : src.ColumnCount; FormulaClipboardHelper.Save(sourceMgr, this.Manager, context, sourceRowCount, sourceColumnCount, fromRow, fromColumn, toRow, toColumn, rowCount, columnCount, rowCount, columnCount, formulas, true, true); }