Esempio n. 1
0
        private void botonGauss_Click(object sender, EventArgs e)
        {
            MetodoForm f = new MetodoForm(new GaussSeidel(A, B), MetodoForm.TipoMetodo.GaussSeidel, this);

            this.Hide();
            f.Show();
        }
Esempio n. 2
0
        private void botonJacobi_Click(object sender, EventArgs e)
        {
            MetodoForm f = new MetodoForm(new Jacobi(A, B), MetodoForm.TipoMetodo.Jacobi, this);

            this.Hide();
            f.Show();
        }
Esempio n. 3
0
        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;
        }