Exemplo n.º 1
0
 public frmRutaEdit(Vista_Ruta obj, frmRuta frm)
 {
     InitializeComponent();
     preparaEdicion();
     esnuevo  = false;
     this.obj = obj;
     datosInterface();
     frmPadre = frm;
 }
Exemplo n.º 2
0
        private void dgv_Precio_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.ColumnIndex == 4)
            {
                Vista_Ruta obj = new Vista_Ruta();
                obj.Id_Ruta   = Convert.ToInt32(dgv_Ruta.Rows[e.RowIndex].Cells[0].Value.ToString());
                obj.Distancia = dgv_Ruta.Rows[e.RowIndex].Cells[1].Value.ToString();
                obj.Origen    = dgv_Ruta.Rows[e.RowIndex].Cells[2].Value.ToString();
                obj.Destino   = dgv_Ruta.Rows[e.RowIndex].Cells[3].Value.ToString();

                frmRutaEdit ofrm = new frmRutaEdit(obj, this);
                ofrm.Show();
            }
        }