コード例 #1
0
        public void Shift()
        {
            foreach (DataGridViewRow row in _ownerGrid.dataGridView.Rows)
            {
                foreach (DataGridViewCell cell in row.Cells)
                {
                    MathCell mCell = MathCellsProvider.GetMathCell(cell);
                    _shiftWay.DoShift(_delimiterIndex, mCell, _ownerGrid);
                }
            }

            List <MathCell> usedMathCells = MathCellsProvider.GetInstance.GetUsedCells();

            foreach (MathCell usedCell in usedMathCells)
            {
                usedCell.ShiftReferences();
            }

            OnGridMathCellsProvider.UpdateValuesOnGrid(usedMathCells, _ownerGrid);
        }