private void SetearFila(DataGridViewRow r, Cuadrilatero cuadrilatero) { r.Cells[cmnLadoA.Index].Value = cuadrilatero.LadoA; r.Cells[cmnLadoB.Index].Value = cuadrilatero.LadoB; r.Cells[cmnLadoC.Index].Value = cuadrilatero.LadoA; r.Cells[cmnLadoD.Index].Value = cuadrilatero.LadoB; r.Cells[cmnArea.Index].Value = cuadrilatero.CalcularArea(); r.Cells[cmnPerimetro.Index].Value = cuadrilatero.CalcularPerimetro(); r.Tag = cuadrilatero; }