public override void Calculate() { int[,] A = new int[Matrix1.GetLength(0), Matrix2.GetLength(1)]; for (int i = 0; i < Matrix1.GetLength(0); i++) { for (int j = 0; j < Matrix2.GetLength(1); j++) { for (int k = 0; k < Matrix1.GetLength(1); k++) { A[i, j] += Matrix1[i, k] * Matrix2[k, j]; } } } MatrixResult = A; }