private void botonGauss_Click(object sender, EventArgs e) { MetodoForm f = new MetodoForm(new GaussSeidel(A, B), MetodoForm.TipoMetodo.GaussSeidel, this); this.Hide(); f.Show(); }
private void botonJacobi_Click(object sender, EventArgs e) { MetodoForm f = new MetodoForm(new Jacobi(A, B), MetodoForm.TipoMetodo.Jacobi, this); this.Hide(); f.Show(); }
public ResultadoForm(MetodoIterativo sistema, MetodoForm metodoForm) { Sistema = sistema; MetodoForm = metodoForm; InitializeComponent(); InicializarGrid(); CargarGrid(); grid.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; grid.Columns[0].Width = 50; grid.Width = grid.Columns.Cast <DataGridViewColumn>().Sum(x => x.Width); this.Width = grid.Width + 36; grid.AllowUserToResizeColumns = true; }