public void Execute() { if (isMatrixController) { if (grid.side == WorkingPanelSide.List) { var data = MatrixController <T> .DeleteMatrix(grid); matrix = data.matrix; } else { matrix = MatrixController <T> .GetMatrix(grid); opView = OperationController <T> .GetOperationView(matrix); MatrixController <T> .DeleteMatrix(grid); } } else { operation = OperationController <T> .GetOperation(opView); OperationController <T> .DeleteOperation(opView); } }