private void subMatrixExecute() { try { MatrixA.SaveElements(); MatrixB.SaveElements(); Matrix result = MatrixA.matrix - MatrixB.matrix; MatrixC = new MatrixVM("C", result); } catch (Exception e) { MessageBox.Show(e.Message); } }
void initializeProperties() { MatrixA = new MatrixVM("A"); MatrixB = new MatrixVM("B"); MatrixC = new MatrixVM("C"); }