//Método que mostra as tabelas de cada iteração do Simplex public void MostrarTabelas(Simplex s) { int x, y; Label lbl; x = 1; y = 30; try { lbl = new Label() { Name = "lblInfoR", Text = "Iterações Método Simplex:", Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold), AutoSize = true }; lbl.Location = new Point(1, 5); this.Controls.Add(lbl); GerarTabelas(s, x, y); while (s.VerificarNegativo()) { s.CalcularInteracao(); y += (50 * s.TabelaSimplex.GetLength(0) + 20); GerarTabelas(s, x, y); } y += (50 * s.TabelaSimplex.GetLength(0) + 25); lbl = new Label() { Name = "lblInfoRF", Text = "Resultados Finais:", Font = new Font("Microsoft Sans Serif", 12.0f, FontStyle.Bold), AutoSize = true }; lbl.Location = new Point(x, y); this.Controls.Add(lbl); y += 5; GerarQuadroResultado(s, x, y); } catch (Exception ex) { MessageBox.Show(ex.Message); } }