コード例 #1
0
 private void SetearFila2(DataGridViewRow r, Cuadrilatero t)
 {
     r.Cells[cmnLado1.Index].Value     = t.Lado1;
     r.Cells[cmnPerimetro.Index].Value = t.GetPerimetro();
     r.Cells[cmnArea.Index].Value      = t.getarea2();
     r.Tag = t;
 }
コード例 #2
0
        private void SetearFila(DataGridViewRow r, Cuadrilatero c)
        {
            r.Cells[cmnLado1.Index].Value     = c.Lado1;
            r.Cells[cmnLado2.Index].Value     = c.Lado2;
            r.Cells[cmnPerimetro.Index].Value = c.GetPerimetro();
            r.Cells[cmnArea.Index].Value      = c.GetArea();
            r.Cells[cmnTipo.Index].Value      = c.GetTipo();


            r.Tag = c;
        }