//public -> private
        private void Gen()
        {
            row1 = Convert.ToInt32(firstMatrixRows.Text);
            row2 = Convert.ToInt32(seckondMatrixRows.Text);
            col1 = Convert.ToInt32(firstMatrixColumns.Text);
            col2 = Convert.ToInt32(secondMatrixColumns.Text);



            A = new MatrixClass <int>(row1, col1);
            A.Generate(generate, row1, col1);
            txtMatrixA.Text = A.Print();
            B = new MatrixClass <int>(row2, col2);
            B.Generate(generate, row2, col2);
            txtMatrixB.Text = B.Print();
        }
 public void Sum()
 {
     S = A + B;
     txtMatrixS.Text = S.Print();
 }
 public void Multiplication()
 {
     S = A * B;
     txtMatrixS.Text = S.Print();
 }