Esempio n. 1
0
 private void btnFormulaGerarMatriz1_Click(object sender, EventArgs e)
 {
     line1 = (int)line_Matriz1.Value;
     col1  = (int)col_Matriz1.Value;
     try
     {
         float[,] matrix = Matriz.LeiDeFormacao(formulaGerarMatriz1.Text, line1, col1);
         Matriz.DesenhaMatrixText(panel1, matrix);
     }
     catch
     {
         MessageBox.Show("Entre uma lei de formação valida", "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }